summaryrefslogtreecommitdiff
path: root/gcc/config/pa/pa-linux.h
diff options
context:
space:
mode:
authordanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2002-09-22 19:23:20 +0000
committerdanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2002-09-22 19:23:20 +0000
commit5b6d07c4c4862c60dca5affaeaa4def15139b295 (patch)
treede93cfb0e906c2e489661d1488858c505399696c /gcc/config/pa/pa-linux.h
parent319e9548e93fc8de3bbbfc07cea1dba3a7525e46 (diff)
downloadgcc-5b6d07c4c4862c60dca5affaeaa4def15139b295.tar.gz
* c-common.c (preprocessing_trad_p): Define.
* pa-hiux.h, pa-hpux.h, pa-hpux7.h (CPP_PREDEFINES): Delete. (TARGET_OS_CPP_BUILTINS, SUBTARGET_SWITCHES): Define. * pa-hpux10.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC): Define. * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define. * pa-linux.h (CPP_PREDEFINES): Delete. (TARGET_OS_CPP_BUILTINS, CPP_SPEC): Define. * pa32-linux.h, pa64-linux.h (CPP_SPEC): Delete. * pa-osf.h, pa-pro-end.h, rtems.h (CPP_PREDEFINES): Delete. (TARGET_OS_CPP_BUILTINS): Define. * pa.h (MASK_SIO, TARGET_SIO, TARGET_PA_10): Define. (TARGET_SWITCHES): Reformat. Use N_() macro. Add SUBTARGET_SWITCHES. (SUBTARGET_SWITCHES): Provide default definition. (TARGET_OPTIONS): Reformat. Use N_() macro. (CPP_PA10_SPEC, CPP_PA11_SPEC, CPP_PA20_SPEC, CPP_64BIT_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_64BIT_DEFAULT_SPEC, SUBTARGET_EXTRA_SPECS, EXTRA_SPECS, CPP_SPEC, CPLUSPLUS_CPP_SPEC, CPP_PREDEFINES): Delete. (TARGET_CPU_CPP_BUILTINS): Define. (TARGET_OS_CPP_BUILTINS): Define for BSD-like systems. * doc/invoke.texi (msio, mwsio): Document new hppa options. * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Document macro preprocessing_trad_p(). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57416 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/pa/pa-linux.h')
-rw-r--r--gcc/config/pa/pa-linux.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/gcc/config/pa/pa-linux.h b/gcc/config/pa/pa-linux.h
index 0fcb1e5095c..86dfabc77b7 100644
--- a/gcc/config/pa/pa-linux.h
+++ b/gcc/config/pa/pa-linux.h
@@ -56,8 +56,22 @@ Boston, MA 02111-1307, USA. */
} \
} while (0)
-#undef CPP_PREDEFINES
-#define CPP_PREDEFINES "-D__ELF__ -Dunix -D__hppa__ -D__gnu_linux__ -Dlinux -Asystem=unix -Asystem=posix -Acpu=hppa -Amachine=hppa -Amachine=bigendian"
+#undef TARGET_OS_CPP_BUILTINS
+#define TARGET_OS_CPP_BUILTINS() \
+ do \
+ { \
+ builtin_define ("__ELF__"); \
+ builtin_define ("__gnu_linux__"); \
+ builtin_define_std ("linux"); \
+ builtin_define_std ("unix"); \
+ builtin_assert ("machine=bigendian"); \
+ builtin_assert ("system=posix"); \
+ builtin_assert ("system=unix"); \
+ } \
+ while (0)
+
+#undef CPP_SPEC
+#define CPP_SPEC "%{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE}"
#undef LIB_SPEC
#define LIB_SPEC \