MIPS: gas: alter 64 or 32 for mipsisa triples if march is implicit
commit094025a30bb2da19df3990e0c0ff8167af823aa1
authorYunQiang Su <yunqiang.su@cipunited.com>
Sat, 6 May 2023 08:26:13 +0000 (6 16:26 +0800)
committerYunQiang Su <yunqiang.su@cipunited.com>
Mon, 5 Jun 2023 03:00:14 +0000 (5 11:00 +0800)
tree0319b69f8f168997b3c4fc72d66d94d2772a3fbf
parentfa1ccf789589ad584400932ca88fa84388c3bced
MIPS: gas: alter 64 or 32 for mipsisa triples if march is implicit

When configure with triples mipsisa[32,64]rN[el,], the march value
is pinned to a fix value if not given explicitly. for example
   1) mipsisa32r6-linux-gnu -n32 xx.s will complains that:
      -march=mips32r6 is not compatible with the selected ABI
   2) mipsisa64r2el-linux-gnu -o32 generates objects with 64bit CPU:
      ELF 32-bit LSB relocatable, MIPS, MIPS64 rel2 version 1 (SYSV)
They are not good default behaviors: Let's alter the CPU info

Since we are using these triples as a regular linux distributions,
let's alter march according to ABI.
gas/config/tc-mips.c
gas/testsuite/gas/mips/mips.exp