diff options
author | Neil Booth <neil@daikokuya.co.uk> | 2003-05-18 09:46:23 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2003-05-18 09:46:23 +0000 |
commit | 4e2e315f25e0e3e5735d317b3159027ad3277d6d (patch) | |
tree | 934055010292a1ef9f72c81a8ea96eb52f524b30 /gcc/config | |
parent | 25903d03442b16235d3198031754e321e0c787c8 (diff) | |
download | gcc-4e2e315f25e0e3e5735d317b3159027ad3277d6d.tar.gz |
c-cppbuiltin.c (TARGET_OS_CPP_BUILTINS, [...]): Default here.
* c-cppbuiltin.c (TARGET_OS_CPP_BUILTINS, TARGET_OBJFMT_CPP_BUILTINS):
Default here.
(c_cpp_builtins): Invoke TARGET_OBJFMT_CPP_BUILTINS().
* defaults.h: Don't default TARGET_OS_CPP_BUILTINS here.
* config/elfos.h (TARGET_OBJFMT_CPP_BUILTINS): Define __ELF__.
* config/freebsd-spec.h, config/netbsd-elf.h, config/alpha/gnu.h,
config/arm/linux-elf.h, config/arm/rtems-elf.h,
config/arm/unknown-elf.h, config/cris/cris.h, config/cris/linux.h,
config/h8300/elf.h, config/i370/linux.h, config/i386/beos-elf.h,
config/i386/gnu.h, config/i386/linux.h, config/i386/linux64.h,
config/i386/moss.h, config/i386/rtemself.h, config/ia64/ia64.h,
config/m68k/rtemself.h, config/mcore/mcore-elf.h, config/mips/linux.h,
config/pa/pa-linux.h, config/rs6000/linux.h, config/rs6000/linux64.h,
config/rs6000/sysv4.h, config/rs6000/vxworks.h, config/s390/linux.h,
config/sh/coff.h, config/sh/elf.h, config/sh/rtemself.h,
config/sh/sh.h, config/sparc/linux.h, config/sparc/linux64.h,
config/sparc/openbsd64.h, config/sparc/sp64-elf.h,
config/sparc/sp86x-elf.h, config/xtensa/elf.h, config/xtensa/linux.h:
Don't define __ELF__.
* config/alpha.h, config/m68k/linux.h (TARGET_OBJFMT_CPP_BUILTINS):
Define __ELF__.
* doc/cpp.texi: Document __ELF__.
* doc/tm.texi: Document TARGET_OBJFMT_CPP_BUILTINS.
From-SVN: r66926
Diffstat (limited to 'gcc/config')
40 files changed, 24 insertions, 70 deletions
diff --git a/gcc/config/alpha/elf.h b/gcc/config/alpha/elf.h index 5ff69604d8b..3ca8d6c7478 100644 --- a/gcc/config/alpha/elf.h +++ b/gcc/config/alpha/elf.h @@ -35,8 +35,13 @@ Boston, MA 02111-1307, USA. */ #undef ASM_FINAL_SPEC -#undef CPP_SUBTARGET_SPEC -#define CPP_SUBTARGET_SPEC "-D__ELF__" +/* alpha/ doesn't use elfos.h for some reason. */ +#define TARGET_OBJFMT_CPP_BUILTINS() \ + do \ + { \ + builtin_define ("__ELF__"); \ + } \ + while (0) #undef CC1_SPEC #define CC1_SPEC "%{G*}" diff --git a/gcc/config/alpha/gnu.h b/gcc/config/alpha/gnu.h index 9b25daff6a5..db2a278db4a 100644 --- a/gcc/config/alpha/gnu.h +++ b/gcc/config/alpha/gnu.h @@ -7,7 +7,6 @@ #define TARGET_OS_CPP_BUILTINS() \ do { \ builtin_define ("__GNU__"); \ - builtin_define ("__ELF__"); \ builtin_define ("__gnu_hurd__"); \ builtin_define ("_LONGLONG"); \ builtin_define_std ("unix"); \ diff --git a/gcc/config/arm/linux-elf.h b/gcc/config/arm/linux-elf.h index ec5c69f36ff..5da2b242070 100644 --- a/gcc/config/arm/linux-elf.h +++ b/gcc/config/arm/linux-elf.h @@ -94,7 +94,6 @@ builtin_define_std ("unix"); \ builtin_define_std ("linux"); \ builtin_define ("__gnu_linux__"); \ - builtin_define ("__ELF__"); \ builtin_assert ("system=unix"); \ builtin_assert ("system=posix"); \ } while (0) diff --git a/gcc/config/arm/rtems-elf.h b/gcc/config/arm/rtems-elf.h index 9b5b1f1b93d..a736ee1ea10 100644 --- a/gcc/config/arm/rtems-elf.h +++ b/gcc/config/arm/rtems-elf.h @@ -27,6 +27,5 @@ #define TARGET_OS_CPP_BUILTINS() \ do { \ builtin_define ("__rtems__"); \ - builtin_define ("__ELF__"); \ builtin_assert ("system=rtems"); \ } while (0) diff --git a/gcc/config/arm/unknown-elf.h b/gcc/config/arm/unknown-elf.h index b3d6f6efa03..573803fce2d 100644 --- a/gcc/config/arm/unknown-elf.h +++ b/gcc/config/arm/unknown-elf.h @@ -43,7 +43,7 @@ /* The __USES_INITFINI__ define is tested in newlib/libc/sys/arm/crt0.S to see if it needs to invoked _init() and _fini(). */ #undef SUBTARGET_CPP_SPEC -#define SUBTARGET_CPP_SPEC "-D__ELF__ -D__USES_INITFINI__" +#define SUBTARGET_CPP_SPEC "-D__USES_INITFINI__" #undef PREFERRED_DEBUGGING_TYPE #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG diff --git a/gcc/config/cris/cris.h b/gcc/config/cris/cris.h index 92c6550b559..f741663b53d 100644 --- a/gcc/config/cris/cris.h +++ b/gcc/config/cris/cris.h @@ -254,14 +254,6 @@ extern const char *cris_elinux_stacksize_str; } \ while (0) -#define TARGET_OS_CPP_BUILTINS() \ - do \ - { \ - builtin_define ("__ELF__"); \ - } \ - while (0) - - /* This needs to be at least 32 bits. */ extern int target_flags; diff --git a/gcc/config/cris/linux.h b/gcc/config/cris/linux.h index f85743f7a9a..6893d7f39b1 100644 --- a/gcc/config/cris/linux.h +++ b/gcc/config/cris/linux.h @@ -106,7 +106,6 @@ Boston, MA 02111-1307, USA. */ builtin_define ("__gnu_linux__"); \ builtin_define ("__linux__"); \ builtin_define ("__unix__"); \ - builtin_define ("__ELF__"); \ if (flag_pic) \ { \ builtin_define ("__PIC__"); \ diff --git a/gcc/config/elfos.h b/gcc/config/elfos.h index b01dcdb609e..3a04661ea33 100644 --- a/gcc/config/elfos.h +++ b/gcc/config/elfos.h @@ -21,6 +21,12 @@ along with GNU CC; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#define TARGET_OBJFMT_CPP_BUILTINS() \ + do \ + { \ + builtin_define ("__ELF__"); \ + } \ + while (0) /* Define a symbol indicating that we are using elfos.h. Some CPU specific configuration files use this. */ diff --git a/gcc/config/freebsd-spec.h b/gcc/config/freebsd-spec.h index 4d81d80c443..b71a2024d33 100644 --- a/gcc/config/freebsd-spec.h +++ b/gcc/config/freebsd-spec.h @@ -62,7 +62,6 @@ Boston, MA 02111-1307, USA. */ else \ builtin_define ("__FreeBSD__"); \ builtin_define_std ("unix"); \ - builtin_define ("__ELF__"); \ builtin_define ("__KPRINTF_ATTRIBUTE__"); \ builtin_assert ("system=unix"); \ builtin_assert ("system=bsd"); \ diff --git a/gcc/config/h8300/elf.h b/gcc/config/h8300/elf.h index c7214d49453..bfa4e814394 100644 --- a/gcc/config/h8300/elf.h +++ b/gcc/config/h8300/elf.h @@ -1,11 +1,3 @@ -/* Target OS preprocessor built-ins. */ -#define TARGET_OS_CPP_BUILTINS() \ - do \ - { \ - builtin_define ("__ELF__"); \ - } \ - while (0) - /* Undefine some macros defined in h8300 that conflict with elfos.h . */ #undef SDB_DEBUGGING_INFO #undef DBX_DEBUGGING_INFO diff --git a/gcc/config/i370/linux.h b/gcc/config/i370/linux.h index 4613dca8cda..730d6b0e996 100644 --- a/gcc/config/i370/linux.h +++ b/gcc/config/i370/linux.h @@ -38,7 +38,6 @@ Boston, MA 02111-1307, USA. */ builtin_define_std ("unix"); \ builtin_define_std ("linux"); \ builtin_define ("__gnu_linux__"); \ - builtin_define ("__ELF__"); \ builtin_assert ("system=posix"); \ } while (0) diff --git a/gcc/config/i386/beos-elf.h b/gcc/config/i386/beos-elf.h index b84519f4d67..d36975606c6 100644 --- a/gcc/config/i386/beos-elf.h +++ b/gcc/config/i386/beos-elf.h @@ -58,7 +58,6 @@ Boston, MA 02111-1307, USA. */ #define TARGET_OS_CPP_BUILTINS() \ do \ { \ - builtin_define ("__ELF__"); \ builtin_define ("__BEOS__"); \ builtin_define ("__INTEL__"); \ builtin_define ("_X86_"); \ diff --git a/gcc/config/i386/gnu.h b/gcc/config/i386/gnu.h index acf2d3fdac8..ff0ff254bac 100644 --- a/gcc/config/i386/gnu.h +++ b/gcc/config/i386/gnu.h @@ -9,7 +9,6 @@ { \ builtin_define_std ("MACH"); \ builtin_define_std ("unix"); \ - builtin_define ("__ELF__"); \ builtin_define ("__GNU__"); \ builtin_define ("__gnu_hurd__"); \ builtin_assert ("system=gnu"); \ diff --git a/gcc/config/i386/linux.h b/gcc/config/i386/linux.h index 6b553cd4cb5..15733930408 100644 --- a/gcc/config/i386/linux.h +++ b/gcc/config/i386/linux.h @@ -79,7 +79,6 @@ Boston, MA 02111-1307, USA. */ { \ builtin_define_std ("linux"); \ builtin_define_std ("unix"); \ - builtin_define ("__ELF__"); \ builtin_define ("__gnu_linux__"); \ builtin_assert ("system=posix"); \ if (flag_pic) \ diff --git a/gcc/config/i386/linux64.h b/gcc/config/i386/linux64.h index b6b575665ca..591e10df34b 100644 --- a/gcc/config/i386/linux64.h +++ b/gcc/config/i386/linux64.h @@ -29,7 +29,6 @@ Boston, MA 02111-1307, USA. */ builtin_define_std ("linux"); \ builtin_define_std ("unix"); \ builtin_define ("__gnu_linux__"); \ - builtin_define ("__ELF__"); \ builtin_assert ("system=posix"); \ if (flag_pic) \ { \ diff --git a/gcc/config/i386/moss.h b/gcc/config/i386/moss.h index 642c625a395..fc0e60c1b04 100644 --- a/gcc/config/i386/moss.h +++ b/gcc/config/i386/moss.h @@ -24,7 +24,6 @@ Boston, MA 02111-1307, USA. */ do \ { \ builtin_define_std ("moss"); \ - builtin_define ("__ELF__"); \ builtin_assert ("system=posix"); \ if (flag_pic) \ { \ diff --git a/gcc/config/i386/rtemself.h b/gcc/config/i386/rtemself.h index 096717816f2..59c40d6917e 100644 --- a/gcc/config/i386/rtemself.h +++ b/gcc/config/i386/rtemself.h @@ -25,7 +25,6 @@ Boston, MA 02111-1307, USA. */ do \ { \ builtin_define ("__rtems__"); \ - builtin_define ("__ELF__"); \ builtin_define ("__USE_INIT_FINI__"); \ builtin_assert ("system=rtems"); \ if (!TARGET_80387) \ diff --git a/gcc/config/ia64/ia64.h b/gcc/config/ia64/ia64.h index e996459fedb..41a687b70a2 100644 --- a/gcc/config/ia64/ia64.h +++ b/gcc/config/ia64/ia64.h @@ -39,7 +39,6 @@ do { \ builtin_define("__ia64"); \ builtin_define("__ia64__"); \ builtin_define("__itanium__"); \ - builtin_define("__ELF__"); \ if (TARGET_BIG_ENDIAN) \ builtin_define("__BIG_ENDIAN__"); \ } while (0) diff --git a/gcc/config/m68k/linux.h b/gcc/config/m68k/linux.h index 168fca3d50b..b9b90826467 100644 --- a/gcc/config/m68k/linux.h +++ b/gcc/config/m68k/linux.h @@ -106,12 +106,18 @@ Boston, MA 02111-1307, USA. */ builtin_define_std ("linux"); \ builtin_define_std ("unix"); \ builtin_define ("__gnu_linux__"); \ - builtin_define ("__ELF__"); \ builtin_assert ("system=unix"); \ builtin_assert ("system=posix"); \ } \ while (0) +#define TARGET_OBJFMT_CPP_BUILTINS() \ + do \ + { \ + builtin_define ("__ELF__"); \ + } \ + while (0) + #undef CPP_SPEC #ifdef USE_GNULIBC_1 #if TARGET_DEFAULT & MASK_68881 diff --git a/gcc/config/m68k/rtemself.h b/gcc/config/m68k/rtemself.h index 393f96ab1e1..ab051fe4bc8 100644 --- a/gcc/config/m68k/rtemself.h +++ b/gcc/config/m68k/rtemself.h @@ -30,7 +30,6 @@ Boston, MA 02111-1307, USA. */ builtin_define_std ("mc68000"); \ builtin_define ("__USE_INIT_FINI__"); \ builtin_define ("__rtems__"); \ - builtin_define ("__ELF__"); \ builtin_assert ("system=rtems"); \ } \ while (0) diff --git a/gcc/config/mcore/mcore-elf.h b/gcc/config/mcore/mcore-elf.h index b8378591706..cc8986a6ac6 100644 --- a/gcc/config/mcore/mcore-elf.h +++ b/gcc/config/mcore/mcore-elf.h @@ -25,13 +25,6 @@ Boston, MA 02111-1307, USA. */ /* Run-time Target Specification. */ #define TARGET_VERSION fputs (" (Motorola MCORE/elf)", stderr) -#define TARGET_OS_CPP_BUILTINS() \ - do \ - { \ - builtin_define ("__ELF__"); \ - } \ - while (0) - /* Use DWARF2 debugging info. */ #define DWARF2_DEBUGGING_INFO 1 diff --git a/gcc/config/mips/linux.h b/gcc/config/mips/linux.h index 3663fe14a83..2461ac34292 100644 --- a/gcc/config/mips/linux.h +++ b/gcc/config/mips/linux.h @@ -120,7 +120,6 @@ void FN () \ #define TARGET_OS_CPP_BUILTINS() \ do { \ builtin_define ("__gnu_linux__"); \ - builtin_define ("__ELF__"); \ builtin_define ("__PIC__"); \ builtin_define ("__pic__"); \ builtin_define_std ("unix"); \ diff --git a/gcc/config/netbsd-elf.h b/gcc/config/netbsd-elf.h index cb38b93ba0a..55ea23a7384 100644 --- a/gcc/config/netbsd-elf.h +++ b/gcc/config/netbsd-elf.h @@ -24,7 +24,6 @@ Boston, MA 02111-1307, USA. */ do \ { \ NETBSD_OS_CPP_BUILTINS_COMMON(); \ - builtin_define ("__ELF__"); \ } \ while (0) diff --git a/gcc/config/pa/pa-linux.h b/gcc/config/pa/pa-linux.h index b2c09981689..1c8266af57a 100644 --- a/gcc/config/pa/pa-linux.h +++ b/gcc/config/pa/pa-linux.h @@ -56,7 +56,6 @@ Boston, MA 02111-1307, USA. */ #define TARGET_OS_CPP_BUILTINS() \ do \ { \ - builtin_define ("__ELF__"); \ builtin_define ("__gnu_linux__"); \ builtin_define_std ("linux"); \ builtin_define_std ("unix"); \ diff --git a/gcc/config/rs6000/linux.h b/gcc/config/rs6000/linux.h index c8322bbfb90..98e85e48363 100644 --- a/gcc/config/rs6000/linux.h +++ b/gcc/config/rs6000/linux.h @@ -29,7 +29,6 @@ do \ { \ builtin_define_std ("PPC"); \ - builtin_define ("__ELF__"); \ builtin_define_std ("powerpc"); \ builtin_assert ("cpu=powerpc"); \ builtin_assert ("machine=powerpc"); \ diff --git a/gcc/config/rs6000/linux64.h b/gcc/config/rs6000/linux64.h index 0cc8ae0cbc3..128e3b75536 100644 --- a/gcc/config/rs6000/linux64.h +++ b/gcc/config/rs6000/linux64.h @@ -170,7 +170,6 @@ builtin_define ("__powerpc__"); \ builtin_define ("__powerpc64__"); \ builtin_define ("__PIC__"); \ - builtin_define ("__ELF__"); \ builtin_assert ("cpu=powerpc64"); \ builtin_assert ("machine=powerpc64"); \ } \ diff --git a/gcc/config/rs6000/sysv4.h b/gcc/config/rs6000/sysv4.h index 6d30f323059..4ccc71da6b5 100644 --- a/gcc/config/rs6000/sysv4.h +++ b/gcc/config/rs6000/sysv4.h @@ -1071,7 +1071,7 @@ extern int fixuplabelno; /* FreeBSD support. */ #define CPP_OS_FREEBSD_SPEC "\ - -D__ELF__ -D__PPC__ -D__ppc__ -D__PowerPC__ -D__powerpc__ \ + -D__PPC__ -D__ppc__ -D__PowerPC__ -D__powerpc__ \ -Acpu=powerpc -Amachine=powerpc" #define STARTFILE_FREEBSD_SPEC FBSD_STARTFILE_SPEC @@ -1190,7 +1190,7 @@ ncrtn.o%s" %{!dynamic-linker:-dynamic-linker /usr/libexec/ld.elf_so}}}" #define CPP_OS_NETBSD_SPEC "\ --D__powerpc__ -D__NetBSD__ -D__ELF__ -D__KPRINTF_ATTRIBUTE__" +-D__powerpc__ -D__NetBSD__ -D__KPRINTF_ATTRIBUTE__" /* WindISS support. */ diff --git a/gcc/config/rs6000/vxworks.h b/gcc/config/rs6000/vxworks.h index e96d3840ddc..6a5c7e98e98 100644 --- a/gcc/config/rs6000/vxworks.h +++ b/gcc/config/rs6000/vxworks.h @@ -39,7 +39,7 @@ #define SUBTARGET_EXTRA_SPECS /* none needed */ #define CPP_SPEC \ -"-DCPU_FAMILY=PPC -D__ppc -D__EABI__ -D__ELF__ \ +"-DCPU_FAMILY=PPC -D__ppc -D__EABI__ \ %{t403: -DCPU=PPC403 -D_SOFT_FLOAT ; \ t405: -DCPU=PPC405 -D_SOFT_FLOAT ; \ t440: -DCPU=PPC440 -D_SOFT_FLOAT ; \ diff --git a/gcc/config/s390/linux.h b/gcc/config/s390/linux.h index cbb771099dc..cc496bdb63b 100644 --- a/gcc/config/s390/linux.h +++ b/gcc/config/s390/linux.h @@ -57,7 +57,6 @@ Boston, MA 02111-1307, USA. */ builtin_define_std ("unix"); \ builtin_assert ("system=linux"); \ builtin_assert ("system=unix"); \ - builtin_define ("__ELF__"); \ builtin_define ("__gnu_linux__"); \ if (flag_pic) \ { \ diff --git a/gcc/config/sh/coff.h b/gcc/config/sh/coff.h index a663829171b..4d9aeb3d78d 100644 --- a/gcc/config/sh/coff.h +++ b/gcc/config/sh/coff.h @@ -72,6 +72,4 @@ Boston, MA 02111-1307, USA. */ assemble_name ((FILE), (NAME)), \ fprintf ((FILE), ",%d\n", (int)(SIZE))) -#define TARGET_OBJFMT_CPP_BUILTINS() - #define DWARF2_UNWIND_INFO 0 diff --git a/gcc/config/sh/elf.h b/gcc/config/sh/elf.h index 1eed0899c0e..0dc2468a860 100644 --- a/gcc/config/sh/elf.h +++ b/gcc/config/sh/elf.h @@ -58,11 +58,6 @@ Boston, MA 02111-1307, USA. */ fprintf ((FILE), "\t.little\n"); \ } while (0) - - -/* Let code know that this is ELF. */ -#define TARGET_OBJFMT_CPP_BUILTINS() builtin_define ("__ELF__") - #undef SIZE_TYPE #define SIZE_TYPE (TARGET_SH5 ? "long unsigned int" : "unsigned int") diff --git a/gcc/config/sh/rtemself.h b/gcc/config/sh/rtemself.h index ee98cda91f3..b386774c5f2 100644 --- a/gcc/config/sh/rtemself.h +++ b/gcc/config/sh/rtemself.h @@ -23,6 +23,5 @@ Boston, MA 02111-1307, USA. */ #define TARGET_OS_CPP_BUILTINS() do { \ builtin_define( "__rtems__" ); \ - builtin_define( "__ELF__" ); \ builtin_assert( "system=rtems" ); \ } while (0) diff --git a/gcc/config/sh/sh.h b/gcc/config/sh/sh.h index acec122abd0..c7510339534 100644 --- a/gcc/config/sh/sh.h +++ b/gcc/config/sh/sh.h @@ -79,7 +79,6 @@ do { \ builtin_define ("__pic__"); \ builtin_define ("__PIC__"); \ } \ - TARGET_OBJFMT_CPP_BUILTINS (); \ } while (0) /* We can not debug without a frame pointer. */ diff --git a/gcc/config/sparc/linux.h b/gcc/config/sparc/linux.h index 4d33a332454..23f5892dd19 100644 --- a/gcc/config/sparc/linux.h +++ b/gcc/config/sparc/linux.h @@ -25,7 +25,6 @@ Boston, MA 02111-1307, USA. */ builtin_define_std ("unix"); \ builtin_define_std ("linux"); \ builtin_define ("__gnu_linux__"); \ - builtin_define ("__ELF__"); \ builtin_assert ("system=unix"); \ builtin_assert ("system=posix"); \ } \ diff --git a/gcc/config/sparc/linux64.h b/gcc/config/sparc/linux64.h index 3f7f6cade82..aed067d9eac 100644 --- a/gcc/config/sparc/linux64.h +++ b/gcc/config/sparc/linux64.h @@ -26,7 +26,6 @@ Boston, MA 02111-1307, USA. */ builtin_define_std ("linux"); \ builtin_define ("_LONGLONG"); \ builtin_define ("__gnu_linux__"); \ - builtin_define ("__ELF__"); \ builtin_assert ("system=unix"); \ builtin_assert ("system=posix"); \ } \ diff --git a/gcc/config/sparc/openbsd64.h b/gcc/config/sparc/openbsd64.h index c3d6dfc690c..96ddf7949af 100644 --- a/gcc/config/sparc/openbsd64.h +++ b/gcc/config/sparc/openbsd64.h @@ -42,7 +42,6 @@ Boston, MA 02111-1307, USA. */ builtin_define ("__sparcv9__"); \ builtin_define ("__sparc_v9__"); \ builtin_define ("__arch64__"); \ - builtin_define ("__ELF__"); \ } \ while (0) diff --git a/gcc/config/sparc/sp64-elf.h b/gcc/config/sparc/sp64-elf.h index 5592a6efc34..f442fd86fc6 100644 --- a/gcc/config/sparc/sp64-elf.h +++ b/gcc/config/sparc/sp64-elf.h @@ -44,7 +44,6 @@ Boston, MA 02111-1307, USA. */ do \ { \ builtin_define_std ("sparc"); \ - builtin_define ("__ELF__"); \ } \ while (0) diff --git a/gcc/config/sparc/sp86x-elf.h b/gcc/config/sparc/sp86x-elf.h index e9e8cdb1248..a3107b50a57 100644 --- a/gcc/config/sparc/sp86x-elf.h +++ b/gcc/config/sparc/sp86x-elf.h @@ -24,7 +24,6 @@ Boston, MA 02111-1307, USA. */ do \ { \ builtin_define ("__sparclite86x__"); \ - builtin_define ("__ELF__"); \ } \ while (0) diff --git a/gcc/config/xtensa/elf.h b/gcc/config/xtensa/elf.h index 4bc4f7fdca3..6c8ebcdc211 100644 --- a/gcc/config/xtensa/elf.h +++ b/gcc/config/xtensa/elf.h @@ -19,11 +19,6 @@ along with GCC; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#define TARGET_OS_CPP_BUILTINS() \ - do { \ - builtin_define ("__ELF__"); \ - } while (0) - #define TARGET_SECTION_TYPE_FLAGS xtensa_multibss_section_type_flags /* Don't assume anything about the header files. */ diff --git a/gcc/config/xtensa/linux.h b/gcc/config/xtensa/linux.h index b364ed900b4..b3281a21d52 100644 --- a/gcc/config/xtensa/linux.h +++ b/gcc/config/xtensa/linux.h @@ -23,7 +23,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA do { \ builtin_define_std ("linux"); \ builtin_define_std ("unix"); \ - builtin_define ("__ELF__"); \ builtin_define ("__gnu_linux__"); \ builtin_assert ("system=posix"); \ } while (0) |