]> gcc.gnu.org Git - gcc.git/commitdiff
(CPP_PREDEFINES): Add -D__GCC_NEW_VARARGS__.
authorJim Wilson <wilson@gcc.gnu.org>
Fri, 19 Feb 1993 01:24:11 +0000 (17:24 -0800)
committerJim Wilson <wilson@gcc.gnu.org>
Fri, 19 Feb 1993 01:24:11 +0000 (17:24 -0800)
From-SVN: r3490

gcc/config/sparc/pbd.h
gcc/config/sparc/sol2.h
gcc/config/sparc/sparc.h
gcc/config/sparc/sysv4.h

index 747ebf5f61409a238f695b73aa7ff665badf78af..8a81b4bec277d7001ff302d74203e8561d3f493f 100644 (file)
@@ -26,7 +26,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 /* Names to predefine in the preprocessor for this target machine.  */
 
 #undef CPP_PREDEFINES
-#define CPP_PREDEFINES "-Dsparc -DUnicomPBD -Dunix"
+#define CPP_PREDEFINES "-Dsparc -DUnicomPBD -Dunix -D__GCC_NEW_VARARGS__"
 
 /* We want DBX format for use with gdb under COFF.  */
 
index 90abc4cf6f8754fa1f38bdffe2fc9a7e4babc599..fd78139b0596abc5b6f660579f05c5db1d326844 100644 (file)
@@ -24,7 +24,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 #undef CPP_PREDEFINES
 #define CPP_PREDEFINES \
- "-Dsun -Dsparc -Dunix -D__svr4__ -Asystem(unix) -Acpu(sparc) -Amachine(sparc)"
+ "-Dsun -Dsparc -Dunix -D__svr4__ -Asystem(unix) -Acpu(sparc) -Amachine(sparc)\
+  -D__GCC_NEW_VARARGS__"
 
 #undef CPP_SPEC
 #define CPP_SPEC "\
index 60e7cc28d5a0931aeecab79f614afc85047126b4..fa4799caf1019b798dc3bd4b39a7ffb790ad418f 100644 (file)
@@ -81,7 +81,12 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 /* Names to predefine in the preprocessor for this target machine.  */
 
-#define CPP_PREDEFINES "-Dsparc -Dsun -Dunix"
+/* The GCC_NEW_VARARGS macro is so that old versions of gcc can compile
+   new versions, which have an incompatible va-sparc.h file.  This matters
+   because gcc does "gvarargs.h" instead of <varargs.h>, and thus gets the
+   wrong varargs file when it is compiled with a different version of gcc.  */
+
+#define CPP_PREDEFINES "-Dsparc -Dsun -Dunix -D__GCC_NEW_VARARGS__"
 
 /* Print subsidiary information on the compiler version in use.  */
 
index 960eb5617dcab1e1756eec2674e4cdd6786846f4..6759ae32019b8166f8f2b6a63cfdafca1641d4fb 100644 (file)
@@ -52,7 +52,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
    the Sparc running svr4.  __svr4__ is our extension.  */
 
 #define CPP_PREDEFINES \
-  "-Dsparc -Dunix -D__svr4__ -Asystem(unix) -Acpu(sparc) -Amachine(sparc)"
+  "-Dsparc -Dunix -D__svr4__ -Asystem(unix) -Acpu(sparc) -Amachine(sparc) \
+   -D__GCC_NEW_VARARGS__"
 
 /* The specialized code which needs to appear in the .init section prior
    to the prologue code for `__do_global_ctors' (see crtstuff.c).
This page took 0.064526 seconds and 5 git commands to generate.