From: Andrew Pinski <[EMAIL PROTECTED]> > > Your patch would cause `-profile' option not to set `-p' to cc1. Is this OK? > Not really, the following patch on top of the previous fixes the above > problem: > Index: config/mips/linux.h > =================================================================== > --- config/mips/linux.h (revision 117683) > +++ config/mips/linux.h (working copy) > @@ -49,6 +49,8 @@ Boston, MA 02110-1301, USA. */ > #undef MD_EXEC_PREFIX > #undef MD_STARTFILE_PREFIX > > +#define SUBTARGET_CC1_SPEC "%{profile:-p}" > + > /* If we don't set MASK_ABICALLS, we can't default to PIC. */ > #undef TARGET_DEFAULT > #define TARGET_DEFAULT MASK_ABICALLS
How about appending to CC1_SPEC? -#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)" +%(subtarget_cc1_spec) %{profile:-p}" -#endif Other architecture seems to set %{profile:-p} to CC1_SPEC. Best Regards, (Hiroki Kaminaga) t --