OSDN Git Service

* config/frv/frv.h: Use TARGET_CPU_CPP_BUILTINS, not CPP_PREDEFINES.
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 9 Mar 2003 22:01:15 +0000 (22:01 +0000)
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 9 Mar 2003 22:01:15 +0000 (22:01 +0000)
* config/ip2k/ip2k.h: Similarly.
* config/m32r/m32r.h: Similarly.
* config/m68hc11/m68hc11.h: Similarly.
* config/mn10200/mn10200.h: Similarly.
* config/mn10300/mn10300.h: Similarly.
* config/pdp11/pdp11.h: Similarly.
* config/v850/v850.h: Similarly.
* config/rs6000/vxworks.h: Similarly for TARGET_OS_CPP_BUILTINS.
* config/v850/retms.h: Similarly for TARGET_OS_CPP_BUILTINS.
* config/mips/iris3.h: Remove #if 0 block.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64049 138bc75d-0d04-0410-961f-82ee72b054a4

12 files changed:
gcc/ChangeLog
gcc/config/frv/frv.h
gcc/config/ip2k/ip2k.h
gcc/config/m32r/m32r.h
gcc/config/m68hc11/m68hc11.h
gcc/config/mips/iris3.h
gcc/config/mn10200/mn10200.h
gcc/config/mn10300/mn10300.h
gcc/config/pdp11/pdp11.h
gcc/config/rs6000/vxworks.h
gcc/config/v850/rtems.h
gcc/config/v850/v850.h

index 40c5770..2fb0ef8 100644 (file)
@@ -1,3 +1,24 @@
+2003-03-09  Neil Booth  <neil@daikokuya.co.uk>
+
+       * config/frv/frv.h: Use TARGET_CPU_CPP_BUILTINS, not CPP_PREDEFINES.
+       * config/ip2k/ip2k.h: Similarly.
+       * config/m32r/m32r.h: Similarly.
+       * config/m68hc11/m68hc11.h: Similarly.
+       * config/mn10200/mn10200.h: Similarly.
+       * config/mn10300/mn10300.h: Similarly.
+       * config/pdp11/pdp11.h: Similarly.
+       * config/v850/v850.h: Similarly.
+       * config/rs6000/vxworks.h: Similarly for TARGET_OS_CPP_BUILTINS.
+       * config/v850/retms.h: Similarly for TARGET_OS_CPP_BUILTINS.
+       * config/mips/iris3.h: Remove #if 0 block.
+
+2003-03-09  Roger Sayle  <roger@eyesopen.com>
+           Joern Rennecke <joern.rennecke@superh.com>
+
+       * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
+       pending argument upon return from handle_braces here.
+       (do_spec_2): Instead handle it upon return from do_spec_1 here.
+
 2003-03-09  Roger Sayle  <roger@eyesopen.com>
            Joern Rennecke <joern.rennecke@superh.com>
 
index b52a454..39bc176 100644 (file)
 
 /* Run-time target specifications */
 
-/* Define this to be a string constant containing `-D' options to define the
-   predefined macros that identify this machine and system.  These macros will
-   be predefined unless the `-ansi' option is specified.
-
-   In addition, a parallel set of macros are predefined, whose names are made
-   by appending `__' at the beginning and at the end.  These `__' macros are
-   permitted by the ANSI standard, so they are predefined regardless of whether
-   `-ansi' is specified.  */
-
-#define CPP_PREDEFINES "-D__frv__ -Amachine(frv)"
+#define TARGET_CPU_CPP_BUILTINS()              \
+  do                                           \
+    {                                          \
+      builtin_define ("__frv__");              \
+      builtin_assert ("machine=frv");          \
+    }                                          \
+  while (0)
 
 \f
 /* This declaration should be present.  */
index 34f901c..a4cd4e4 100644 (file)
@@ -27,26 +27,15 @@ Boston, MA 02111-1307, USA.  */
 #include "elfos.h"
 #undef ASM_SPEC                        /* But we have a GAS assembler.  */
 
-#define CPP_PREDEFINES \
-  "-DIP2K -D_DOUBLE_IS_32BITS -D__BUFSIZ__=512 -D__FILENAME_MAX__=128"
-/* Define this to be a string constant containing `-D' options to
-   define the predefined macros that identify this machine and system.
-   These macros will be predefined unless the `-ansi' option is
-   specified.
-
-   In addition, a parallel set of macros are predefined, whose names
-   are made by appending `__' at the beginning and at the end.  These
-   `__' macros are permitted by the ANSI standard, so they are
-   predefined regardless of whether `-ansi' is specified.
-
-   For example, on the Sun, one can use the following value:
-
-   "-Dmc68000 -Dsun -Dunix"
-
-   The result is to define the macros `__mc68000__', `__sun__' and
-   `__unix__' unconditionally, and the macros `mc68000', `sun' and
-   `unix' provided `-ansi' is not specified.  */
-
+#define TARGET_CPU_CPP_BUILTINS()              \
+  do                                           \
+    {                                          \
+      builtin_define_std ("IP2K");             \
+      builtin_define ("_DOUBLE_IS_32BITS");    \
+      builtin_define ("_BUFSIZ=512");          \
+      builtin_define ("__FILENAME_MAX__=128"); \
+    }                                          \
+  while (0)
 
 /* This declaration should be present.  */
 extern int target_flags;
index 74431b6..0c48b3e 100644 (file)
@@ -105,7 +105,14 @@ Boston, MA 02111-1307, USA.  */
 
 /* Names to predefine in the preprocessor for this target machine.  */
 /* __M32R__ is defined by the existing compiler so we use that.  */
-#define CPP_PREDEFINES "-Acpu=m32r -Amachine=m32r -D__M32R__"
+#define TARGET_CPU_CPP_BUILTINS()              \
+  do                                           \
+    {                                          \
+      builtin_define ("__M32R__");             \
+      builtin_assert ("cpu=m32r");             \
+      builtin_assert ("machine=m32r");         \
+    }                                          \
+  while (0)
 
 /* This macro defines names of additional specifications to put in the specs
    that can be used in various specifications like CC1_SPEC.  Its definition
index 9325302..7fc467b 100644 (file)
@@ -84,7 +84,12 @@ Note:
 #define STARTFILE_SPEC "crt1%O%s"
 
 /* Names to predefine in the preprocessor for this target machine.  */
-#define CPP_PREDEFINES         "-Dmc68hc1x"
+#define TARGET_CPU_CPP_BUILTINS()              \
+  do                                           \
+    {                                          \
+      builtin_define_std ("mc68hc1x");         \
+    }                                          \
+  while (0)
 
 /* As an embedded target, we have no libc.  */
 #define inhibit_libc
index 5b05a9f..042f742 100644 (file)
@@ -20,16 +20,6 @@ Boston, MA 02111-1307, USA.  */
 
 #define SGI_TARGET 1           /* inform other mips files this is SGI */
 
-/* Names to predefine in the preprocessor for this target machine.  */
-/* Temporarily #if 0'd until Irix header consolidation.  */
-#if 0
-#define CPP_PREDEFINES "\
--Dunix -Dmips -Dsgi -DSVR3 -Dhost_mips -DMIPSEB -DSYSTYPE_SYSV \
--Asystem=unix -Asystem=svr3 -Acpu=mips -Amachine=mips"
-#define SUBTARGET_CPP_SPEC "\
-%{!ansi:-D__EXTENSIONS__} -D_MIPSEB -D_SYSTYPE_SYSV"
-#endif
-
 #define STARTFILE_SPEC "%{pg:gcrt1.o%s}%{!pg:%{p:mcrt1.o%s}%{!p:crt1.o%s}}"
 #define LIB_SPEC       \
        "%{!p:%{!pg:%{!static:%{!g*:-lc_s}} -lc}}%{p:-lc_p}%{pg:-lc_p} crtn.o%s"
index 58099cb..7ea4bb3 100644 (file)
@@ -32,7 +32,13 @@ Boston, MA 02111-1307, USA.  */
 
 /* Names to predefine in the preprocessor for this target machine.  */
 
-#define CPP_PREDEFINES "-D__mn10200__ -D__MN10200__"
+#define TARGET_CPU_CPP_BUILTINS()              \
+  do                                           \
+    {                                          \
+      builtin_define ("__mn10200__");          \
+      builtin_define ("__MN10200__");          \
+    }                                          \
+  while (0)
 
 /* Run-time compilation parameters selecting different hardware subsets.  */
 
index 7ddd9d5..0bde176 100644 (file)
@@ -33,7 +33,13 @@ Boston, MA 02111-1307, USA.  */
 
 /* Names to predefine in the preprocessor for this target machine.  */
 
-#define CPP_PREDEFINES "-D__mn10300__ -D__MN10300__"
+#define TARGET_CPU_CPP_BUILTINS()              \
+  do                                           \
+    {                                          \
+      builtin_define ("__mn10300__");          \
+      builtin_define ("__MN10300__");          \
+    }                                          \
+  while (0)
 
 #define CPP_SPEC "%{mam33:-D__AM33__}"
 
index 147b6ba..07f3704 100644 (file)
@@ -30,7 +30,12 @@ Boston, MA 02111-1307, USA.  */
 
 /* Names to predefine in the preprocessor for this target machine.  */
 
-#define CPP_PREDEFINES "-Dpdp11"
+#define TARGET_CPU_CPP_BUILTINS()              \
+  do                                           \
+    {                                          \
+      builtin_define_std ("pdp11");            \
+    }                                          \
+  while (0)
 
 /* Print subsidiary information on the compiler version in use.  */
 #define TARGET_VERSION fprintf (stderr, " (pdp11)");
index dddd26d..5f2cde1 100644 (file)
@@ -18,11 +18,14 @@ 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.  */
 
-/* N.B. Only big endian PPC is supported by VxWorks.  */
-
-#undef CPP_PREDEFINES
-#define CPP_PREDEFINES \
-  "-D__vxworks -D__vxworks__ -D_BIG_ENDIAN -D__BIG_ENDIAN__"
+#undef TARGET_OS_CPP_BUILTINS
+#define TARGET_OS_CPP_BUILTINS()               \
+  do                                           \
+    {                                          \
+      builtin_define ("__vxworks");            \
+      builtin_define ("__vxworks__");          \
+    }                                          \
+  while (0)
 
 /* We have to kill off the entire specs set created by rs6000/sysv4.h
    and substitute our own set.  The top level vxworks.h has done some
index 14ddfa1..6a312ac 100644 (file)
@@ -20,7 +20,7 @@ the Free Software Foundation, 59 Temple Place - Suite 330,
 Boston, MA 02111-1307, USA.  */
 
 /* Specify predefined symbols in preprocessor.  */
-
-#undef CPP_PREDEFINES
-#define CPP_PREDEFINES "-D__v851__ -D__v850 -D__rtems__ \
-  -Asystem=rtems -Acpu=v850 -Amachine=v850"
+#define TARGET_OS_CPP_BUILTINS() do {          \
+  builtin_define( "__rtems__" );               \
+  builtin_assert( "system=rtems" );            \
+} while (0)
index 8e1d28b..531b73b 100644 (file)
  { "subtarget_cpp_spec", SUBTARGET_CPP_SPEC } 
 
 /* Names to predefine in the preprocessor for this target machine.  */
-#define CPP_PREDEFINES "-D__v851__ -D__v850"
+#define TARGET_CPU_CPP_BUILTINS() do {         \
+  builtin_define( "__v851__" );                        \
+  builtin_define( "__v850" );                  \
+  builtin_assert( "machine=v850" );            \
+  builtin_assert( "cpu=v850" );                        \
+} while(0)
 
 /* Run-time compilation parameters selecting different hardware subsets.  */