[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: GCC 13 stopped supporting a documented option (was Re: Bug#1050429: musl: unusable on mipsel, mips64el: mipsel-linux-gnu-gcc: unrecognised command-line option '-EL')



>
> 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 to: