/* 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. */
#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 "\
/* 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. */
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).