From 5b6d07c4c4862c60dca5affaeaa4def15139b295 Mon Sep 17 00:00:00 2001 From: danglin Date: Sun, 22 Sep 2002 19:23:20 +0000 Subject: * 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 --- gcc/config/pa/pa-linux.h | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'gcc/config/pa/pa-linux.h') 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 \ -- cgit v1.2.1