summaryrefslogtreecommitdiff
path: root/gcc/config/sh
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2003-05-18 09:46:23 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2003-05-18 09:46:23 +0000
commit6abe46e3b30622c186a48323d353e4e9737f9078 (patch)
tree934055010292a1ef9f72c81a8ea96eb52f524b30 /gcc/config/sh
parent895bc69140fa92ab577dfeffb3b614e8081cd87c (diff)
downloadgcc-6abe46e3b30622c186a48323d353e4e9737f9078.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66926 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/sh')
-rw-r--r--gcc/config/sh/coff.h2
-rw-r--r--gcc/config/sh/elf.h5
-rw-r--r--gcc/config/sh/rtemself.h1
-rw-r--r--gcc/config/sh/sh.h1
4 files changed, 0 insertions, 9 deletions
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. */