>
> Now, what is the problem?  Well, the spec removes the knowledge about
> the -EL and -EB arguments by overriding *cc1.  So the fix is to re-add
> those arguments:
>
> | %rename cc1 old_cc1
> | *cc1:
> | %(cc1_cpu) -nostdinc -isystem /usr/include/mips64el-linux-musl -isystem 
> include%s %(old_cc1)
>

Yes. You are correct.
I guess `%(cc1_cpu)` was supposed to contains all of switches support
by the author of this specs file,
while this suppose is not true.

Such as mips, the EL/EB option is added by
#undef CC1_SPEC
#define CC1_SPEC "\
%{G*} %{EB:-meb} %{EL:-mel} %{EB:%{EL:%emay not use both -EB and -EL}} \
%(subtarget_cc1_spec)"

And it is also true for most target, since they are using
`%(subtarget_cc1_spec)` or similar.

-- 
YunQiang Su

Reply via email to