This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Minor cleanup on SPARC
- From: Eric Botcazou <ebotcazou at libertysurf dot fr>
- To: gcc-patches at gcc dot gnu dot org
- Cc:
- Date: Mon, 3 Jan 2005 21:54:38 +0100
- Subject: Minor cleanup on SPARC
- Reply-to:
Not really a regression, but this is obvious enough...
sparc.h already registers "sparc" as a preprocessor builtin
#define TARGET_CPU_CPP_BUILTINS() \
do \
{ \
builtin_define_std ("sparc"); \
so it is a pure waste of effort to register it again afterwards.
Applied to mainline.
2005-01-03 Eric Botcazou <ebotcazou@libertysurf.fr>
* config/sparc/litecoff.h (TARGET_OS_CPP_BUILTINS): Do not
define "sparc".
* config/sparc/sysv4-only.h (TARGET_OS_CPP_BUILTINS): Likewise.
* config/sparc/rtemself.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
* config/sparc/sol2-64.h (TARGET_SUB_OS_CPP_BUILTINS): Delete.
* config/sparc/sp64-elf.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
--
Eric Botcazou
Index: config/sparc/litecoff.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/sparc/litecoff.h,v
retrieving revision 1.15
diff -u -r1.15 litecoff.h
--- config/sparc/litecoff.h 15 Mar 2004 18:20:49 -0000 1.15
+++ config/sparc/litecoff.h 3 Jan 2005 08:26:31 -0000
@@ -24,7 +24,6 @@
#define TARGET_OS_CPP_BUILTINS() \
do \
{ \
- builtin_define_std ("sparc"); \
builtin_define_std ("sparclite"); \
} \
while (0)
Index: config/sparc/rtemself.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/sparc/rtemself.h,v
retrieving revision 1.11
diff -u -r1.11 rtemself.h
--- config/sparc/rtemself.h 17 Jun 2003 01:00:43 -0000 1.11
+++ config/sparc/rtemself.h 3 Jan 2005 08:26:31 -0000
@@ -23,7 +23,6 @@
#define TARGET_SUB_OS_CPP_BUILTINS() \
do \
{ \
- builtin_define_std ("sparc"); \
builtin_define ("__rtems__"); \
builtin_define ("__USE_INIT_FINI__"); \
builtin_assert ("system=rtems"); \
Index: config/sparc/sol2-64.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/sparc/sol2-64.h,v
retrieving revision 1.6
diff -u -r1.6 sol2-64.h
--- config/sparc/sol2-64.h 17 Jun 2003 01:00:43 -0000 1.6
+++ config/sparc/sol2-64.h 3 Jan 2005 08:26:31 -0000
@@ -5,12 +5,3 @@
#define TARGET_DEFAULT \
(MASK_V9 + MASK_PTR64 + MASK_64BIT /* + MASK_HARD_QUAD */ + \
MASK_STACK_BIAS + MASK_FPU + MASK_LONG_DOUBLE_128)
-
-/* Target OS builtins. */
-#undef TARGET_SUB_OS_CPP_BUILTINS
-#define TARGET_SUB_OS_CPP_BUILTINS() \
- do \
- { \
- builtin_define_std ("sparc"); \
- } \
- while (0)
Index: config/sparc/sp64-elf.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/sparc/sp64-elf.h,v
retrieving revision 1.32
diff -u -r1.32 sp64-elf.h
--- config/sparc/sp64-elf.h 24 Oct 2004 01:42:49 -0000 1.32
+++ config/sparc/sp64-elf.h 3 Jan 2005 08:26:31 -0000
@@ -38,15 +38,6 @@
#undef SPARC_DEFAULT_CMODEL
#define SPARC_DEFAULT_CMODEL CM_EMBMEDANY
-/* Target OS builtins for config/sol.h. */
-#undef TARGET_SUB_OS_CPP_BUILTINS
-#define TARGET_SUB_OS_CPP_BUILTINS() \
- do \
- { \
- builtin_define_std ("sparc"); \
- } \
- while (0)
-
/* __svr4__ is used by the C library (FIXME) */
#undef CPP_SUBTARGET_SPEC
#define CPP_SUBTARGET_SPEC "-D__svr4__"
Index: config/sparc/sysv4-only.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/sparc/sysv4-only.h,v
retrieving revision 1.2
diff -u -r1.2 sysv4-only.h
--- config/sparc/sysv4-only.h 17 Jun 2003 01:00:44 -0000 1.2
+++ config/sparc/sysv4-only.h 3 Jan 2005 08:26:31 -0000
@@ -26,7 +26,6 @@
#define TARGET_OS_CPP_BUILTINS() \
do \
{ \
- builtin_define_std ("sparc"); \
builtin_define_std ("unix"); \
builtin_define ("__svr4__"); \
builtin_assert ("system=unix"); \