diff options
author | Andrew Pinski <pinskia@gmail.com> | 2006-10-17 07:02:39 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2006-10-17 07:02:39 +0000 |
commit | 120311ec9082aab8cdd5c8c46d61baad52032157 (patch) | |
tree | 94e4c7a4f00d097f39773a2a954b9c1ce5a45c30 /gcc | |
parent | a838492866d047424a4555d2c4bc7657ac8350d3 (diff) | |
download | gcc-120311ec9082aab8cdd5c8c46d61baad52032157.zip gcc-120311ec9082aab8cdd5c8c46d61baad52032157.tar.gz gcc-120311ec9082aab8cdd5c8c46d61baad52032157.tar.bz2 |
linux.h (SUBTARGET_CC1_SPEC): Override.
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/mips/linux.h | 8 | ||||
-rw-r--r-- | gcc/config/mips/mips.h | 3 |
3 files changed, 14 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index aeb3dfd..baef3cf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/config/mips/linux.h b/gcc/config/mips/linux.h index 5ed427d..bed5e31 100644 --- a/gcc/config/mips/linux.h +++ b/gcc/config/mips/linux.h @@ -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. */ diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h index 4b72c8c..ba77d86 100644 --- a/gcc/config/mips/mips.h +++ b/gcc/config/mips/mips.h @@ -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. */ |