summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-07-01 00:51:56 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-07-01 00:51:56 +0000
commit3819dc4da9f6708c7c2a41902a5c151f3384cddf (patch)
tree63e3b842c53c1fb6821336827fbd1ab6d29a71ab
parentf980ff79700582f28ae1c993050aebcafb772e99 (diff)
downloadppe42-gcc-3819dc4da9f6708c7c2a41902a5c151f3384cddf.tar.gz
ppe42-gcc-3819dc4da9f6708c7c2a41902a5c151f3384cddf.zip
X
* config/i386/gnu.h (CPP_SPEC): Define __PIC__ and __pic__ if -fPIC or -fpic is specified. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27868 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/config/i386/gnu.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/config/i386/gnu.h b/gcc/config/i386/gnu.h
index 632ca47d0b5..cd32b928f66 100644
--- a/gcc/config/i386/gnu.h
+++ b/gcc/config/i386/gnu.h
@@ -14,7 +14,9 @@
-Dunix -Asystem(unix) -Asystem(posix) -D__GNU__ -Asystem(gnu)"
#undef CPP_SPEC
-#define CPP_SPEC "%(cpp_cpu) %{posix:-D_POSIX_SOURCE} %{bsd:-D_BSD_SOURCE}"
+#define CPP_SPEC "%(cpp_cpu) \
+ %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} \
+ %{posix:-D_POSIX_SOURCE} %{bsd:-D_BSD_SOURCE}"
#undef CC1_SPEC
#define CC1_SPEC "%(cc1_cpu)"
OpenPOWER on IntegriCloud