summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthorpej <thorpej@138bc75d-0d04-0410-961f-82ee72b054a4>2002-09-22 23:46:44 +0000
committerthorpej <thorpej@138bc75d-0d04-0410-961f-82ee72b054a4>2002-09-22 23:46:44 +0000
commit67a7d2b502fbbf7c944966ebf57147374ef9b509 (patch)
tree533de819a83a4aaaadb94ce96a68d50db20bacbb
parent0ad4f989f81db37d2e21f75493626926fa8eed2b (diff)
downloadgcc-67a7d2b502fbbf7c944966ebf57147374ef9b509.tar.gz
* config/mips/netbsd.h (SUBTARGET_ASM_SPEC): Always pass -KPIC
unless -fno-pic or -fno-PIC is specified. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57421 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/mips/netbsd.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 587405f191b..2e0326068ec 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2002-09-22 Jason Thorpe <thorpej@wasabisystems.com>
+
+ * config/mips/netbsd.h (SUBTARGET_ASM_SPEC): Always pass -KPIC
+ unless -fno-pic or -fno-PIC is specified.
+
2002-09-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
* c-common.c (preprocessing_trad_p): Define.
diff --git a/gcc/config/mips/netbsd.h b/gcc/config/mips/netbsd.h
index fa6291dd9ec..3ec054456ee 100644
--- a/gcc/config/mips/netbsd.h
+++ b/gcc/config/mips/netbsd.h
@@ -158,7 +158,7 @@ Boston, MA 02111-1307, USA. */
#undef SUBTARGET_ASM_SPEC
#define SUBTARGET_ASM_SPEC \
- "%{fpic:-KPIC} %{fPIC:-KPIC}"
+ "%{!fno-PIC:%{!fno-pic:-KPIC}}"
/* -G is incompatible with -KPIC which is the default, so only allow objects