diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 587405f191ba5809de2abf1036f7f9829267dc15..2e0326068ec9909f37c294cc66a836dedbf961d7 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 fa6291dd9eca87e6f1d53c643e0b956b99bd5c12..3ec054456ee68c719f1d33f6879a7b59152cd605 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