aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Thorpe <thorpej@wasabisystems.com>2002-09-22 23:46:44 +0000
committerJason Thorpe <thorpej@gcc.gnu.org>2002-09-22 23:46:44 +0000
commit173b51b5c13820dc8b18f344cdb20321dbdf94aa (patch)
tree533de819a83a4aaaadb94ce96a68d50db20bacbb
parent44eedb7540c15f8776ab08773d18ae05b7309662 (diff)
downloadgcc-173b51b5c13820dc8b18f344cdb20321dbdf94aa.zip
gcc-173b51b5c13820dc8b18f344cdb20321dbdf94aa.tar.gz
gcc-173b51b5c13820dc8b18f344cdb20321dbdf94aa.tar.bz2
netbsd.h (SUBTARGET_ASM_SPEC): Always pass -KPIC unless -fno-pic or -fno-PIC is specified.
* config/mips/netbsd.h (SUBTARGET_ASM_SPEC): Always pass -KPIC unless -fno-pic or -fno-PIC is specified. From-SVN: r57421
-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 587405f..2e03260 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 fa6291d..3ec0544 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