aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/config/default.exp
diff options
context:
space:
mode:
authorYunQiang Su <syq@gcc.gnu.org>2024-07-12 18:18:59 +0800
committerYunQiang Su <syq@debian.org>2024-07-12 18:19:27 +0800
commitd49f2dd78b08efa4e1ee51f5df5058846c2eb4fa (patch)
tree2dc8484739d3de7d006dd17f377f5fd4f6322c1e /ld/testsuite/config/default.exp
parent0d988fbb4e2fe2138925ce2de10396daf6439383 (diff)
downloadgdb-d49f2dd78b08efa4e1ee51f5df5058846c2eb4fa.zip
gdb-d49f2dd78b08efa4e1ee51f5df5058846c2eb4fa.tar.gz
gdb-d49f2dd78b08efa4e1ee51f5df5058846c2eb4fa.tar.bz2
MIPS: Use N64 by default for mips*64*-*-linux-gnuabi64
the ABI section of the triple explicitly asks for N64, and in fact GCC also does so. It can fix the test failure: FAIL: libdep test: did not get expected output from the linker with Debian's mipsisa64r6el-linux-gnuabi64 toolchain.
Diffstat (limited to 'ld/testsuite/config/default.exp')
-rw-r--r--ld/testsuite/config/default.exp9
1 files changed, 7 insertions, 2 deletions
diff --git a/ld/testsuite/config/default.exp b/ld/testsuite/config/default.exp
index 8374920..d60f629 100644
--- a/ld/testsuite/config/default.exp
+++ b/ld/testsuite/config/default.exp
@@ -177,11 +177,16 @@ if {! [info exists env(CCC_OVERRIDE_OPTIONS)]} {
# installed, but to the O32 ABI in the build tree, because of some
# specs-file hacks. Make sure we use an ABI that is compatible with
# the one we expect.
-if {[istarget mips64*-*-linux*] &&
+# mips*64*-*linux-gnuabi64 compiler defaults to N64 ABI.
+if {([istarget mips64*-*-linux*] || [istarget mips*64*-*-linux-gnuabi64]) &&
(![board_info [target_info name] exists multilib_flags] ||
![string match "*-mabi" [board_info [target_info name] multilib_flags]])
} {
- append gcc_B_opt " -mabi=n32"
+ if { [istarget *-*-gnuabi64] } {
+ append gcc_B_opt " -mabi=64"
+ } else {
+ append gcc_B_opt " -mabi=n32"
+ }
}
if { [istarget rx-*-*] } {