diff options
author | YunQiang Su <yunqiang.su@cipunited.com> | 2023-05-10 18:07:23 +0800 |
---|---|---|
committer | YunQiang Su <yunqiang.su@cipunited.com> | 2023-06-05 11:00:14 +0800 |
commit | be0d391f22fe6009c3be907753975a984cbbcc23 (patch) | |
tree | a3a67bd621ffb72f41a4501b89b1e91cf7a22201 /gas/configure.ac | |
parent | 094025a30bb2da19df3990e0c0ff8167af823aa1 (diff) | |
download | gdb-be0d391f22fe6009c3be907753975a984cbbcc23.zip gdb-be0d391f22fe6009c3be907753975a984cbbcc23.tar.gz gdb-be0d391f22fe6009c3be907753975a984cbbcc23.tar.bz2 |
MIPS: default r6 if vendor is img
This behavior is used by downstream toolchain since 2014.
We also set the default ABI for mips*-img-elf to O32.
The previous value is NO_ABI, which is not good default ABI.
We don't support mips64*-img* due to GCC doesn't support it,
and We believe that the multilib should be used for this case.
Diffstat (limited to 'gas/configure.ac')
-rw-r--r-- | gas/configure.ac | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gas/configure.ac b/gas/configure.ac index 03728ff..c1571a4 100644 --- a/gas/configure.ac +++ b/gas/configure.ac @@ -380,6 +380,12 @@ changequote([,])dnl use_e_mips_abi_o32=1 ;; esac + # If Vendor is IMG, then MIPSr6 is used + case ${target} in + mips*-img-*) + mips_cpu=mips32r6 + ;; + esac # Decide whether to generate 32-bit or 64-bit code by default. # Used to resolve -march=from-abi when an embedded ABI is selected. case ${target} in @@ -399,7 +405,7 @@ changequote([,])dnl | mips64*-kfreebsd*-gnu | mips64*-ps2-elf*) mips_default_abi=N32_ABI ;; - mips*-linux* | mips*-freebsd* | mips*-kfreebsd*-gnu) + mips*-linux* | mips*-freebsd* | mips*-kfreebsd*-gnu | mips*-img-elf) mips_default_abi=O32_ABI ;; mips64*-openbsd*) |