+2006-10-17 Andrew Pinsiki <pinskia@gmail.com>
+ Richard Sandiford <richard@codesourcery.com>
+
+ * config/mips/linux.h (SUBTARGET_CC1_SPEC): Override.
+ * config/mips/mips.h (CC1_SPEC): Override any earlier definition.
+
2006-10-16 Geoffrey Keating <geoffk@apple.com>
* config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Move to rs6000.h.
builtin_define ("_MIPS_SZINT=32"); \
} while (0)
-#undef SUBTARGET_CPP_SPEC
+#undef SUBTARGET_CPP_SPEC
#define SUBTARGET_CPP_SPEC "%{pthread:-D_REENTRANT}"
+/* A standard GNU/Linux mapping. On most targets, it is included in
+ CC1_SPEC itself by config/linux.h, but mips.h overrides CC1_SPEC
+ and provides this hook instead. */
+#undef SUBTARGET_CC1_SPEC
+#define SUBTARGET_CC1_SPEC "%{profile:-p}"
+
/* From iris5.h */
/* -G is incompatible with -KPIC which is the default, so only allow objects
in the small data section if the user explicitly asks for it. */
/* CC1_SPEC is the set of arguments to pass to the compiler proper. */
-#ifndef CC1_SPEC
+#undef CC1_SPEC
#define CC1_SPEC "\
%{gline:%{!g:%{!g0:%{!g1:%{!g2: -g1}}}}} \
%{G*} %{EB:-meb} %{EL:-mel} %{EB:%{EL:%emay not use both -EB and -EL}} \
%{save-temps: } \
%(subtarget_cc1_spec)"
-#endif
/* Preprocessor specs. */