linux.h (SUBTARGET_CC1_SPEC): Override.
authorAndrew Pinski <pinskia@gmail.com>
Tue, 17 Oct 2006 07:02:39 +0000 (07:02 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 17 Oct 2006 07:02:39 +0000 (07:02 +0000)
gcc/
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.

Co-Authored-By: Richard Sandiford <richard@codesourcery.com>
From-SVN: r117819

gcc/ChangeLog
gcc/config/mips/linux.h
gcc/config/mips/mips.h

index aeb3dfd1f76552dac35cfffa17508ca0f2f03db8..baef3cf85ea49ed5851dbe17480ddeda40c84373 100644 (file)
@@ -1,3 +1,9 @@
+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.
index 5ed427dd79e4fbab15040c964c2e9ae10b0ebb61..bed5e316dd023f8850f95a1aa27044086e9c0cd1 100644 (file)
@@ -89,9 +89,15 @@ Boston, MA 02110-1301, USA.  */
     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.  */
index 4b72c8c8e3a32cba9ba7ae649dc99c114a6c471c..ba77d8636af14a3a9895822f89b777f3f472ff21 100644 (file)
@@ -865,13 +865,12 @@ extern const struct mips_rtx_cost_data *mips_cost;
 
 /* 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.  */