netbsd.h (SUBTARGET_ASM_SPEC): Don't pass -KPIC to the assembler if -mno-abicalls...
authorJason Thorpe <thorpej@wasabisystems.com>
Sat, 9 Nov 2002 18:38:18 +0000 (18:38 +0000)
committerJason Thorpe <thorpej@gcc.gnu.org>
Sat, 9 Nov 2002 18:38:18 +0000 (18:38 +0000)
* config/mips/netbsd.h (SUBTARGET_ASM_SPEC): Don't pass -KPIC
to the assembler if -mno-abicalls was specified.

From-SVN: r58957

gcc/ChangeLog
gcc/config/mips/netbsd.h

index fc96e701dcc18eaa50894934a6aeb5380f8f9f84..540c69a95866c19be2a07728fa8a0177940d31d0 100644 (file)
@@ -1,3 +1,8 @@
+2002-11-09  Jason Thorpe  <thorpej@wasabisystems.com>
+
+       * config/mips/netbsd.h (SUBTARGET_ASM_SPEC): Don't pass -KPIC
+       to the assembler if -mno-abicalls was specified.
+
 2002-11-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
 
        * pa-linux.h (PREFERRED_DEBUGGING_TYPE, DWARF2_ASM_LINE_DEBUG_INFO,
index 3ec054456ee68c719f1d33f6879a7b59152cd605..5537782004911cea445d5d9d04ae97222b034a4f 100644 (file)
@@ -157,8 +157,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