From: Matt Kraai <kraai@alumni.cmu.edu>
To: David Edelsohn <dje@watson.ibm.com>
Cc: Neil Booth <neil@daikokuya.co.uk>, gcc-patches@gcc.gnu.org
Subject: Re: convert 32-bit PowerPC GNU/Linux to TARGET_OS_CPP_BUILTINS
Date: Tue, 09 Jul 2002 18:50:00 -0000 [thread overview]
Message-ID: <20020710003711.GA11048@catalonia> (raw)
In-Reply-To: <200207091650.MAA28778@makai.watson.ibm.com>
[-- Attachment #1: Type: text/plain, Size: 24103 bytes --]
On Tue, Jul 09, 2002 at 12:50:21PM -0400, David Edelsohn wrote:
> >>>>> Neil Booth writes:
>
> > Also, please avoid doing a #undef on TARGET_OS_CPP_BUILTINS.
> > No port has needed it so far; I don't see why any port should
> > need it. You might need to rearrange config.gcc a bit, or
> > use a nested submacro that is overridden and #undef-ed.
>
> I had not noticed your reply before. I would much prefer to
> replicate the current logic with the new infrastructure (as Matt has done)
> and then clean it up incrementally instead of making the initial hurdle
> higher and higher. We do not need to do everything at once.
In light of this, I've commited the following patch.
Bootstrapped and regression tested on powerpc-unknown-linux-gnu.
Matt
* config/rs6000/aix.h: Convert CPP_PREDEFINES to
TARGET_OS_CPP_BUILTINS.
* config/rs6000/aix31.h: Likewise.
* config/rs6000/aix41.h: Likewise.
* config/rs6000/aix43.h: Likewise.
* config/rs6000/aix51.h: Likewise.
* config/rs6000/beos.h: Likewise.
* config/rs6000/darwin.h: Likewise.
* config/rs6000/eabi.h: Likewise.
* config/rs6000/eabisim.h: Likewise.
* config/rs6000/linux.h: Likewise.
* config/rs6000/linux64.h: Likewise.
* config/rs6000/lynx.h: Likewise.
* config/rs6000/mach.h: Likewise.
* config/rs6000/rtems.h: Likewise.
* config/rs6000/sysv4.h: Likewise.
* config/rs6000/vxppc.h: Likewise.
Index: gcc/config/rs6000/aix.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/aix.h,v
retrieving revision 1.29
diff -c -3 -p -r1.29 aix.h
*** gcc/config/rs6000/aix.h 11 Jun 2002 23:14:47 -0000 1.29
--- gcc/config/rs6000/aix.h 9 Jul 2002 15:33:28 -0000
*************** Boston, MA 02111-1307, USA. */
*** 41,48 ****
#define LINK_LIBGCC_SPECIAL_1
/* Names to predefine in the preprocessor for this target machine. */
! #define CPP_PREDEFINES "-D_IBMR2 -D_POWER -D_AIX -D_AIX32 -D_LONG_LONG \
! -Asystem=unix -Asystem=aix -Acpu=rs6000 -Amachine=rs6000"
/* Define appropriate architecture macros for preprocessor depending on
target switches. */
--- 41,60 ----
#define LINK_LIBGCC_SPECIAL_1
/* Names to predefine in the preprocessor for this target machine. */
! #define TARGET_OS_CPP_BUILTINS() \
! do \
! { \
! builtin_define ("_IBMR2"); \
! builtin_define ("_POWER"); \
! builtin_define ("_AIX"); \
! builtin_define ("_AIX32"); \
! builtin_define ("_LONG_LONG"); \
! builtin_assert ("system=unix"); \
! builtin_assert ("system=aix"); \
! builtin_assert ("cpu=rs6000"); \
! builtin_assert ("machine=rs6000"); \
! } \
! while (0)
/* Define appropriate architecture macros for preprocessor depending on
target switches. */
Index: gcc/config/rs6000/aix31.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/aix31.h,v
retrieving revision 1.8
diff -c -3 -p -r1.8 aix31.h
*** gcc/config/rs6000/aix31.h 15 Nov 2001 05:21:06 -0000 1.8
--- gcc/config/rs6000/aix31.h 9 Jul 2002 15:33:28 -0000
*************** Boston, MA 02111-1307, USA. */
*** 60,67 ****
}
/* AIX 3.2 defined _AIX32, but older versions do not. */
! #undef CPP_PREDEFINES
! #define CPP_PREDEFINES "-D_IBMR2 -D_AIX -Asystem=unix -Asystem=aix -Acpu=rs6000 -Amachine=rs6000"
/* AIX 3.1 uses bit 15 in CROR as the magic nop. */
#undef RS6000_CALL_GLUE
--- 60,77 ----
}
/* AIX 3.2 defined _AIX32, but older versions do not. */
! #undef TARGET_OS_CPP_BUILTINS
! #define TARGET_OS_CPP_BUILTINS() \
! do \
! { \
! builtin_define ("_IBMR2"); \
! builtin_define ("_AIX"); \
! builtin_assert ("system=unix"); \
! builtin_assert ("system=aix"); \
! builtin_assert ("cpu=rs6000"); \
! builtin_assert ("machine=rs6000"); \
! } \
! while (0)
/* AIX 3.1 uses bit 15 in CROR as the magic nop. */
#undef RS6000_CALL_GLUE
Index: gcc/config/rs6000/aix41.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/aix41.h,v
retrieving revision 1.16
diff -c -3 -p -r1.16 aix41.h
*** gcc/config/rs6000/aix41.h 11 Jun 2002 23:14:47 -0000 1.16
--- gcc/config/rs6000/aix41.h 9 Jul 2002 15:33:28 -0000
*************** Boston, MA 02111-1307, USA. */
*** 33,41 ****
#undef ASM_DEFAULT_SPEC
#define ASM_DEFAULT_SPEC "-mcom"
! #undef CPP_PREDEFINES
! #define CPP_PREDEFINES "-D_IBMR2 -D_POWER -D_AIX -D_AIX32 -D_AIX41 \
! -D_LONG_LONG -Asystem=unix -Asystem=aix"
#undef CPP_SPEC
#define CPP_SPEC "%{posix: -D_POSIX_SOURCE}\
--- 33,52 ----
#undef ASM_DEFAULT_SPEC
#define ASM_DEFAULT_SPEC "-mcom"
! #undef TARGET_OS_CPP_BUILTINS
! #define TARGET_OS_CPP_BUILTINS() \
! do \
! { \
! builtin_define ("_IBMR2"); \
! builtin_define ("_POWER"); \
! builtin_define ("_AIX"); \
! builtin_define ("_AIX32"); \
! builtin_define ("_AIX41"); \
! builtin_define ("_LONG_LONG"); \
! builtin_assert ("system=unix"); \
! builtin_assert ("system=aix"); \
! } \
! while (0)
#undef CPP_SPEC
#define CPP_SPEC "%{posix: -D_POSIX_SOURCE}\
Index: gcc/config/rs6000/aix43.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/aix43.h,v
retrieving revision 1.26
diff -c -3 -p -r1.26 aix43.h
*** gcc/config/rs6000/aix43.h 12 Jun 2002 03:06:25 -0000 1.26
--- gcc/config/rs6000/aix43.h 9 Jul 2002 15:33:28 -0000
*************** do { \
*** 96,104 ****
#undef ASM_DEFAULT_SPEC
#define ASM_DEFAULT_SPEC "-mcom"
! #undef CPP_PREDEFINES
! #define CPP_PREDEFINES "-D_IBMR2 -D_POWER -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 \
! -D_LONG_LONG -Asystem=unix -Asystem=aix"
#undef CPP_SPEC
#define CPP_SPEC "%{posix: -D_POSIX_SOURCE}\
--- 96,116 ----
#undef ASM_DEFAULT_SPEC
#define ASM_DEFAULT_SPEC "-mcom"
! #undef TARGET_OS_CPP_BUILTINS
! #define TARGET_OS_CPP_BUILTINS() \
! do \
! { \
! builtin_define ("_IBMR2"); \
! builtin_define ("_POWER"); \
! builtin_define ("_AIX"); \
! builtin_define ("_AIX32"); \
! builtin_define ("_AIX41"); \
! builtin_define ("_AIX43"); \
! builtin_define ("_LONG_LONG"); \
! builtin_assert ("system=unix"); \
! builtin_assert ("system=aix"); \
! } \
! while (0)
#undef CPP_SPEC
#define CPP_SPEC "%{posix: -D_POSIX_SOURCE}\
Index: gcc/config/rs6000/aix51.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/aix51.h,v
retrieving revision 1.15
diff -c -3 -p -r1.15 aix51.h
*** gcc/config/rs6000/aix51.h 12 Jun 2002 03:06:26 -0000 1.15
--- gcc/config/rs6000/aix51.h 9 Jul 2002 15:33:28 -0000
*************** do { \
*** 96,104 ****
#undef ASM_DEFAULT_SPEC
#define ASM_DEFAULT_SPEC "-mcom"
! #undef CPP_PREDEFINES
! #define CPP_PREDEFINES "-D_IBMR2 -D_POWER -D_LONG_LONG \
! -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX51 -Asystem=unix -Asystem=aix"
#undef CPP_SPEC
#define CPP_SPEC "%{posix: -D_POSIX_SOURCE} \
--- 96,117 ----
#undef ASM_DEFAULT_SPEC
#define ASM_DEFAULT_SPEC "-mcom"
! #undef TARGET_OS_CPP_BUILTINS
! #define TARGET_OS_CPP_BUILTINS() \
! do \
! { \
! builtin_define ("_IBMR2"); \
! builtin_define ("_POWER"); \
! builtin_define ("_LONG_LONG"); \
! builtin_define ("_AIX"); \
! builtin_define ("_AIX32"); \
! builtin_define ("_AIX41"); \
! builtin_define ("_AIX43"); \
! builtin_define ("_AIX51"); \
! builtin_assert ("system=unix"); \
! builtin_assert ("system=aix"); \
! } \
! while (0)
#undef CPP_SPEC
#define CPP_SPEC "%{posix: -D_POSIX_SOURCE} \
Index: gcc/config/rs6000/beos.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/beos.h,v
retrieving revision 1.10
diff -c -3 -p -r1.10 beos.h
*** gcc/config/rs6000/beos.h 11 Jun 2002 23:14:47 -0000 1.10
--- gcc/config/rs6000/beos.h 9 Jul 2002 15:33:28 -0000
*************** Boston, MA 02111-1307, USA. */
*** 38,46 ****
#undef ASM_SPEC
#define ASM_SPEC "-u %(asm_cpu)"
! #undef CPP_PREDEFINES
/* __POWERPC__ must be defined for some header files */
! #define CPP_PREDEFINES "-D__BEOS__ -D__POWERPC__ -Asystem=beos -Acpu=powerpc -Amachine=powerpc"
#undef CPP_SPEC
#define CPP_SPEC "%{posix: -D_POSIX_SOURCE}"
--- 38,55 ----
#undef ASM_SPEC
#define ASM_SPEC "-u %(asm_cpu)"
! #undef TARGET_OS_CPP_BUILTINS
/* __POWERPC__ must be defined for some header files */
! #define TARGET_OS_CPP_BUILTINS() \
! do \
! { \
! builtin_define ("__BEOS__"); \
! builtin_define ("__POWERPC__"); \
! builtin_assert ("system=beos"); \
! builtin_assert ("cpu=powerpc"); \
! builtin_assert ("machine=powerpc"); \
! } \
! while (0)
#undef CPP_SPEC
#define CPP_SPEC "%{posix: -D_POSIX_SOURCE}"
Index: gcc/config/rs6000/darwin.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/darwin.h,v
retrieving revision 1.21
diff -c -3 -p -r1.21 darwin.h
*** gcc/config/rs6000/darwin.h 11 Jun 2002 23:14:47 -0000 1.21
--- gcc/config/rs6000/darwin.h 9 Jul 2002 15:33:28 -0000
*************** Boston, MA 02111-1307, USA. */
*** 44,50 ****
#define SUBTARGET_OVERRIDE_OPTIONS \
rs6000_altivec_abi = 1;
! #define CPP_PREDEFINES "-D__ppc__ -D__POWERPC__ -D__NATURAL_ALIGNMENT__ -D__MACH__ -D__APPLE__"
/* We want -fPIC by default, unless we're using -static to compile for
the kernel or some such. */
--- 44,59 ----
#define SUBTARGET_OVERRIDE_OPTIONS \
rs6000_altivec_abi = 1;
! #define TARGET_OS_CPP_BUILTINS() \
! do \
! { \
! builtin_define ("__ppc__"); \
! builtin_define ("__POWERPC__"); \
! builtin_define ("__NATURAL_ALIGNMENT__"); \
! builtin_define ("__MACH__"); \
! builtin_define ("__APPLE__"); \
! } \
! while (0)
/* We want -fPIC by default, unless we're using -static to compile for
the kernel or some such. */
Index: gcc/config/rs6000/eabi.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/eabi.h,v
retrieving revision 1.5
diff -c -3 -p -r1.5 eabi.h
*** gcc/config/rs6000/eabi.h 2 Nov 2000 23:29:12 -0000 1.5
--- gcc/config/rs6000/eabi.h 9 Jul 2002 15:33:28 -0000
*************** Boston, MA 02111-1307, USA. */
*** 31,36 ****
#undef TARGET_VERSION
#define TARGET_VERSION fprintf (stderr, " (PowerPC Embedded)");
! #undef CPP_PREDEFINES
! #define CPP_PREDEFINES \
! "-DPPC -D__embedded__ -Asystem=embedded -Acpu=powerpc -Amachine=powerpc"
--- 31,44 ----
#undef TARGET_VERSION
#define TARGET_VERSION fprintf (stderr, " (PowerPC Embedded)");
! #undef TARGET_OS_CPP_BUILTINS
! #define TARGET_OS_CPP_BUILTINS() \
! do \
! { \
! builtin_define_std ("PPC"); \
! builtin_define ("__embedded__"); \
! builtin_assert ("system=embedded"); \
! builtin_assert ("cpu=powerpc"); \
! builtin_assert ("machine=powerpc"); \
! } \
! while (0)
Index: gcc/config/rs6000/eabisim.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/eabisim.h,v
retrieving revision 1.4
diff -c -3 -p -r1.4 eabisim.h
*** gcc/config/rs6000/eabisim.h 2 Nov 2000 23:29:12 -0000 1.4
--- gcc/config/rs6000/eabisim.h 9 Jul 2002 15:33:28 -0000
*************** Boston, MA 02111-1307, USA. */
*** 23,31 ****
#undef TARGET_VERSION
#define TARGET_VERSION fprintf (stderr, " (PowerPC Simulated)");
! #undef CPP_PREDEFINES
! #define CPP_PREDEFINES \
! "-DPPC -D__embedded__ -D__simulator__ -Asystem=embedded -Asystem=simulator -Acpu=powerpc -Amachine=powerpc"
/* Make the simulator the default */
#undef LIB_DEFAULT_SPEC
--- 23,41 ----
#undef TARGET_VERSION
#define TARGET_VERSION fprintf (stderr, " (PowerPC Simulated)");
! #undef TARGET_OS_CPP_BUILTINS
! #define TARGET_OS_CPP_BUILTINS() \
! do \
! { \
! builtin_define_std ("PPC"); \
! builtin_define ("__embedded__"); \
! builtin_define ("__simulator__"); \
! builtin_assert ("system=embedded"); \
! builtin_assert ("system=simulator"); \
! builtin_assert ("cpu=powerpc"); \
! builtin_assert ("machine=powerpc"); \
! } \
! while (0)
/* Make the simulator the default */
#undef LIB_DEFAULT_SPEC
Index: gcc/config/rs6000/linux.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/linux.h,v
retrieving revision 1.31
diff -c -3 -p -r1.31 linux.h
*** gcc/config/rs6000/linux.h 3 Dec 2001 00:49:41 -0000 1.31
--- gcc/config/rs6000/linux.h 9 Jul 2002 15:33:28 -0000
*************** Boston, MA 02111-1307, USA. */
*** 27,35 ****
#undef MD_EXEC_PREFIX
#undef MD_STARTFILE_PREFIX
! #undef CPP_PREDEFINES
! #define CPP_PREDEFINES \
! "-DPPC -D__ELF__ -Dpowerpc -Acpu=powerpc -Amachine=powerpc"
#undef CPP_OS_DEFAULT_SPEC
#define CPP_OS_DEFAULT_SPEC "%(cpp_os_linux)"
--- 27,43 ----
#undef MD_EXEC_PREFIX
#undef MD_STARTFILE_PREFIX
! #undef TARGET_OS_CPP_BUILTINS
! #define TARGET_OS_CPP_BUILTINS() \
! do \
! { \
! builtin_define_std ("PPC"); \
! builtin_define ("__ELF__"); \
! builtin_define_std ("powerpc"); \
! builtin_assert ("cpu=powerpc"); \
! builtin_assert ("machine=powerpc"); \
! } \
! while (0)
#undef CPP_OS_DEFAULT_SPEC
#define CPP_OS_DEFAULT_SPEC "%(cpp_os_linux)"
Index: gcc/config/rs6000/linux64.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/linux64.h,v
retrieving revision 1.19
diff -c -3 -p -r1.19 linux64.h
*** gcc/config/rs6000/linux64.h 12 Jun 2002 03:06:26 -0000 1.19
--- gcc/config/rs6000/linux64.h 9 Jul 2002 15:33:28 -0000
*************** Boston, MA 02111-1307, USA. */
*** 106,116 ****
#undef MD_EXEC_PREFIX
#undef MD_STARTFILE_PREFIX
! #undef CPP_PREDEFINES
! #define CPP_PREDEFINES \
! "-D_PPC_ -D__PPC__ -D_PPC64_ -D__PPC64__ -D__powerpc__ -D__powerpc64__ \
! -D_PIC_ -D__PIC__ -D__ELF__ \
! -Acpu=powerpc64 -Amachine=powerpc64"
#undef CPP_OS_DEFAULT_SPEC
#define CPP_OS_DEFAULT_SPEC "%(cpp_os_linux)"
--- 106,125 ----
#undef MD_EXEC_PREFIX
#undef MD_STARTFILE_PREFIX
! #undef TARGET_OS_CPP_BUILTINS
! #define TARGET_OS_CPP_BUILTINS() \
! do \
! { \
! builtin_define ("__PPC__"); \
! builtin_define ("__PPC64__"); \
! builtin_define ("__powerpc__"); \
! builtin_define ("__powerpc64__"); \
! builtin_define ("__PIC__"); \
! builtin_define ("__ELF__"); \
! builtin_assert ("cpu=powerpc64"); \
! builtin_assert ("machine=powerpc64"); \
! } \
! while (0)
#undef CPP_OS_DEFAULT_SPEC
#define CPP_OS_DEFAULT_SPEC "%(cpp_os_linux)"
Index: gcc/config/rs6000/lynx.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/lynx.h,v
retrieving revision 1.10
diff -c -3 -p -r1.10 lynx.h
*** gcc/config/rs6000/lynx.h 18 May 2002 23:47:17 -0000 1.10
--- gcc/config/rs6000/lynx.h 9 Jul 2002 15:33:28 -0000
*************** Boston, MA 02111-1307, USA. */
*** 53,60 ****
#undef DEFAULT_SIGNED_CHAR
#define DEFAULT_SIGNED_CHAR 1
! #undef CPP_PREDEFINES
! #define CPP_PREDEFINES "-Acpu=rs6000 -Amachine=rs6000 -Asystem=lynx -Asystem=unix -DLynx -D_IBMR2 -Dunix -Drs6000 -Dlynx -DLYNX"
#undef LINK_SPEC
#define LINK_SPEC "-T0x10001000 -H0x1000 -D0x20000000 -btextro -bhalt:4 -bnodelcsect -bnso -bro -bnoglink %{v} %{b*}"
--- 53,74 ----
#undef DEFAULT_SIGNED_CHAR
#define DEFAULT_SIGNED_CHAR 1
! #undef TARGET_OS_CPP_BUILTINS
! #define TARGET_OS_CPP_BUILTINS() \
! do \
! { \
! builtin_assert ("cpu=rs6000"); \
! builtin_assert ("machine=rs6000"); \
! builtin_assert ("system=lynx"); \
! builtin_assert ("system=unix"); \
! builtin_define_std ("Lynx"); \
! builtin_define ("_IBMR2"); \
! builtin_define_std ("unix"); \
! builtin_define_std ("rs6000"); \
! builtin_define_std ("lynx"); \
! builtin_define_std ("LYNX"); \
! } \
! while (0)
#undef LINK_SPEC
#define LINK_SPEC "-T0x10001000 -H0x1000 -D0x20000000 -btextro -bhalt:4 -bnodelcsect -bnso -bro -bnoglink %{v} %{b*}"
Index: gcc/config/rs6000/mach.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/mach.h,v
retrieving revision 1.6
diff -c -3 -p -r1.6 mach.h
*** gcc/config/rs6000/mach.h 20 Nov 2001 19:43:28 -0000 1.6
--- gcc/config/rs6000/mach.h 9 Jul 2002 15:33:28 -0000
*************** Boston, MA 02111-1307, USA. */
*** 26,33 ****
#define TARGET_VERSION fprintf (stderr, " (Mach-RS/6000)");
/* We don't define AIX under MACH; instead we define `unix'. */
! #undef CPP_PREDEFINES
! #define CPP_PREDEFINES "-Drios -D_IBMR2 -Dunix -Asystem=unix -Asystem=mach -Acpu=rs6000 -Amachine=rs6000"
/* Define different binder options for MACH. */
#undef LINK_SPEC
--- 26,44 ----
#define TARGET_VERSION fprintf (stderr, " (Mach-RS/6000)");
/* We don't define AIX under MACH; instead we define `unix'. */
! #undef TARGET_OS_CPP_BUILTINS
! #define TARGET_OS_CPP_BUILTINS() \
! do \
! { \
! builtin_define_std ("rios"); \
! builtin_define ("_IBMR2"); \
! builtin_define_std ("unix"); \
! builtin_assert ("system=unix"); \
! builtin_assert ("system=mach"); \
! builtin_assert ("cpu=rs6000"); \
! builtin_assert ("machine=rs6000"); \
! } \
! while (0)
/* Define different binder options for MACH. */
#undef LINK_SPEC
Index: gcc/config/rs6000/rtems.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/rtems.h,v
retrieving revision 1.14
diff -c -3 -p -r1.14 rtems.h
*** gcc/config/rs6000/rtems.h 12 Apr 2002 13:35:00 -0000 1.14
--- gcc/config/rs6000/rtems.h 9 Jul 2002 15:33:28 -0000
*************** Boston, MA 02111-1307, USA. */
*** 21,26 ****
/* Specify predefined symbols in preprocessor. */
! #undef CPP_PREDEFINES
! #define CPP_PREDEFINES "-DPPC -D__rtems__ \
! -Asystem=rtems -Acpu=powerpc -Amachine=powerpc"
--- 21,34 ----
/* Specify predefined symbols in preprocessor. */
! #undef TARGET_OS_CPP_BUILTINS
! #define TARGET_OS_CPP_BUILTINS() \
! do \
! { \
! builtin_define_std ("PPC"); \
! builtin_define ("__rtems__"); \
! builtin_assert ("system=rtems"); \
! builtin_assert ("cpu=powerpc"); \
! builtin_assert ("machine=powerpc"); \
! } \
! while (0)
Index: gcc/config/rs6000/sysv4.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/sysv4.h,v
retrieving revision 1.97
diff -c -3 -p -r1.97 sysv4.h
*** gcc/config/rs6000/sysv4.h 11 Jun 2002 23:14:47 -0000 1.97
--- gcc/config/rs6000/sysv4.h 9 Jul 2002 15:33:28 -0000
*************** do { \
*** 808,816 ****
#define TARGET_VERSION fprintf (stderr, " (PowerPC System V.4)");
#endif
\f
! #ifndef CPP_PREDEFINES
! #define CPP_PREDEFINES \
! "-DPPC -Dunix -D__svr4__ -Asystem=unix -Asystem=svr4 -Acpu=powerpc -Amachine=powerpc"
#endif
/* Pass various options to the assembler. */
--- 808,826 ----
#define TARGET_VERSION fprintf (stderr, " (PowerPC System V.4)");
#endif
\f
! #ifndef TARGET_OS_CPP_BUILTINS
! #define TARGET_OS_CPP_BUILTINS() \
! do \
! { \
! builtin_define_std ("PPC"); \
! builtin_define_std ("unix"); \
! builtin_define ("__svr4__"); \
! builtin_assert ("system=unix"); \
! builtin_assert ("system=svr4"); \
! builtin_assert ("cpu=powerpc"); \
! builtin_assert ("machine=powerpc"); \
! } \
! while (0)
#endif
/* Pass various options to the assembler. */
Index: gcc/config/rs6000/vxppc.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/vxppc.h,v
retrieving revision 1.9
diff -c -3 -p -r1.9 vxppc.h
*** gcc/config/rs6000/vxppc.h 11 Jun 2002 23:14:47 -0000 1.9
--- gcc/config/rs6000/vxppc.h 9 Jul 2002 15:33:28 -0000
*************** Boston, MA 02111-1307, USA. */
*** 39,48 ****
#undef LINK_OS_DEFAULT_SPEC
#define LINK_OS_DEFAULT_SPEC "%(link_os_vxworks)"
! #undef CPP_PREDEFINES
! #define CPP_PREDEFINES "\
! -D__vxworks -D__vxworks__ -Asystem=vxworks -Asystem=embedded \
! -Acpu=powerpc -Amachine=powerpc"
/* We use stabs-in-elf for debugging */
#undef PREFERRED_DEBUGGING_TYPE
--- 39,56 ----
#undef LINK_OS_DEFAULT_SPEC
#define LINK_OS_DEFAULT_SPEC "%(link_os_vxworks)"
! #undef TARGET_OS_CPP_BUILTINS
! #define TARGET_OS_CPP_BUILTINS() \
! do \
! { \
! builtin_define ("__vxworks"); \
! builtin_define ("__vxworks__"); \
! builtin_assert ("system=vxworks"); \
! builtin_assert ("system=embedded"); \
! builtin_assert ("cpu=powerpc"); \
! builtin_assert ("machine=powerpc"); \
! } \
! while (0)
/* We use stabs-in-elf for debugging */
#undef PREFERRED_DEBUGGING_TYPE
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
next prev parent reply other threads:[~2002-07-10 0:36 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-03 10:56 Neil Booth
2002-07-09 10:06 ` David Edelsohn
2002-07-09 10:28 ` Neil Booth
2002-07-09 18:50 ` Matt Kraai [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-07-02 21:18 Matt Kraai
2002-07-03 8:10 ` David Edelsohn
2002-07-03 9:15 ` Matt Kraai
2002-07-03 9:25 ` Stan Shebs
2002-07-03 9:32 ` David Edelsohn
2002-07-03 9:36 ` Jason R Thorpe
2002-07-03 10:29 ` Matt Kraai
2002-07-03 23:50 ` Alan Modra
2002-07-04 9:22 ` David Edelsohn
2002-07-08 18:27 ` Matt Kraai
2002-07-08 19:05 ` Geoff Keating
2002-07-08 19:16 ` David Edelsohn
2002-07-09 0:37 ` Matt Kraai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020710003711.GA11048@catalonia \
--to=kraai@alumni.cmu.edu \
--cc=dje@watson.ibm.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=neil@daikokuya.co.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).