aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/mips/netbsd.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/mips/netbsd.h')
-rw-r--r--gcc/config/mips/netbsd.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/config/mips/netbsd.h b/gcc/config/mips/netbsd.h
index 3ec054456ee..0d721bc2e26 100644
--- a/gcc/config/mips/netbsd.h
+++ b/gcc/config/mips/netbsd.h
@@ -39,6 +39,9 @@ Boston, MA 02111-1307, USA. */
if (TARGET_LONG64) \
builtin_define ("__LONG64"); \
\
+ if (TARGET_ABICALLS) \
+ builtin_define ("__ABICALLS__"); \
+ \
if (mips_abi == ABI_EABI) \
builtin_define ("__mips_eabi"); \
else if (mips_abi == ABI_N32) \
@@ -157,8 +160,9 @@ Boston, MA 02111-1307, USA. */
#define NETBSD_ENTRY_POINT "__start"
#undef SUBTARGET_ASM_SPEC
-#define SUBTARGET_ASM_SPEC \
- "%{!fno-PIC:%{!fno-pic:-KPIC}}"
+#define SUBTARGET_ASM_SPEC \
+ "%{!mno-abicalls: \
+ %{!fno-PIC:%{!fno-pic:-KPIC}}}"
/* -G is incompatible with -KPIC which is the default, so only allow objects