From: Andrew Pinski Date: Tue, 17 Oct 2006 07:02:39 +0000 (+0000) Subject: linux.h (SUBTARGET_CC1_SPEC): Override. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=120311ec9082aab8cdd5c8c46d61baad52032157;p=gcc.git linux.h (SUBTARGET_CC1_SPEC): Override. gcc/ 2006-10-17 Andrew Pinsiki Richard Sandiford * config/mips/linux.h (SUBTARGET_CC1_SPEC): Override. * config/mips/mips.h (CC1_SPEC): Override any earlier definition. Co-Authored-By: Richard Sandiford From-SVN: r117819 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index aeb3dfd1f76..baef3cf85ea 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2006-10-17 Andrew Pinsiki + Richard Sandiford + + * config/mips/linux.h (SUBTARGET_CC1_SPEC): Override. + * config/mips/mips.h (CC1_SPEC): Override any earlier definition. + 2006-10-16 Geoffrey Keating * 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 5ed427dd79e..bed5e316dd0 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 4b72c8c8e3a..ba77d8636af 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. */