[PATCH] MIPS: gas: alter 64 or 32 for r6 triples if march is implicit

Jiaxun Yang jiaxun.yang@flygoat.com
Sat May 6 09:15:57 GMT 2023



> 2023年5月6日 09:52,YunQiang Su <syq@debian.org> 写道:
> 
> Jiaxun Yang <jiaxun.yang@flygoat.com> 于2023年5月6日周六 16:43写道:
>> 
>> 
>> 
>>> 2023年5月6日 09:37,YunQiang Su <yunqiang.su@cipunited.com> 写道:
>>> 
>>> When configure with triples mipsisa[32,64]r6[el,], the march value
>>> is pinned to a fix value if not given explicitly. for example
>>>  mipsisa32r6-linux-gnu -n32 xx.s
>>> will complains that:
>>>  -march=mips32r6 is not compatible with the selected ABI
>>> 
>>> Since we are using these triples as a regular linux distributions,
>>> let's alter march according to ABI.
>> 
>> Hi,
>> 
>> Hmm, why people wants to build n32 binary on mips32r6 CPU?
> 
> I guess o32 toolchain should not work only for 32bit CPU?

In this case people should override -march option themself, not rely on random
toolchain hacks, since it’s not determinant from user’s perspective what “fallback”
march it will be, especially in case the toolchain is not designed for base ISA.

> 
> At seem time, this patch can solve some testcases in binutils-all
> when configured with
>       --target=mipsisa32r6-linux-gnu

I think we’d better fix the test case.

Thanks
Jiaxun



More information about the Binutils mailing list