This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][RFC] -EB / -EL don't properly affect gcc predefined symbols


On Fri, 2006-10-13 at 14:45 +0900, Hiroki Kaminaga wrote:
> 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.

Problem is that mips-irix does not want the profile as far as I can tell
which is why the SUBTARGET_CC1_SPEC is a good second idea of where it
should be defined.

Thanks,
Andrew Pinski


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]