aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/pa/pa-linux.h
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2004-11-11 03:18:02 +0000
committerZack Weinberg <zack@gcc.gnu.org>2004-11-11 03:18:02 +0000
commitdc3160863a1cdc9c015ae2b8690d91e2b83cf4db (patch)
treea54f2bc0212c863a4196ecc6fcaaa57d680d48d7 /gcc/config/pa/pa-linux.h
parent8ef36086c65ab47220e159ef34e90907836775e0 (diff)
downloadgcc-dc3160863a1cdc9c015ae2b8690d91e2b83cf4db.zip
gcc-dc3160863a1cdc9c015ae2b8690d91e2b83cf4db.tar.gz
gcc-dc3160863a1cdc9c015ae2b8690d91e2b83cf4db.tar.bz2
linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Define __PIC__ and __pic__ only if TARGET_ABICALLS.
2004-11-10 Peter S. Mazinger <ps.m@gmx.net> * config/mips/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Define __PIC__ and __pic__ only if TARGET_ABICALLS. (SUBTARGET_CPP_SPECS): Don't define or undefine __PIC__ and __pic__. (SUBTARGET_ASM_SPECS): Don't pass -non_shared to assembler; pass -KPIC only if not -mno-abicalls. * config/alpha/linux.h, config/arm/linux-elf.h, config/pa/pa-linux.h * config/sparc/linux.h, config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Define __PIC__ and __pic__ if flag_pic. * config/arm/linux-gas.h (CPP_SPEC): Don't define __PIC__ or __pic__. * config/pa/pa/linux.h (CPP_SPEC): Likewise. * config/sparc/linux.h (CPP_SUBTARGET_SPEC): Likewise. * config/sparc/linux64.h (CPP_SUBTARGET_SPEC): Likewise. From-SVN: r90470
Diffstat (limited to 'gcc/config/pa/pa-linux.h')
-rw-r--r--gcc/config/pa/pa-linux.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/config/pa/pa-linux.h b/gcc/config/pa/pa-linux.h
index c3808f1..fa86715 100644
--- a/gcc/config/pa/pa-linux.h
+++ b/gcc/config/pa/pa-linux.h
@@ -58,11 +58,16 @@ Boston, MA 02111-1307, USA. */
{ \
LINUX_TARGET_OS_CPP_BUILTINS(); \
builtin_assert ("machine=bigendian"); \
+ if (flag_pic) \
+ { \
+ builtin_define ("__PIC__"); \
+ builtin_define ("__pic__"); \
+ } \
} \
while (0)
#undef CPP_SPEC
-#define CPP_SPEC "%{fPIC|fpic|fPIE|fpie:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE}"
+#define CPP_SPEC "%{posix:-D_POSIX_SOURCE}"
#undef LIB_SPEC
#define LIB_SPEC \