aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@orcam.me.uk>2024-07-13 06:00:44 +0100
committerMaciej W. Rozycki <macro@orcam.me.uk>2024-07-13 06:00:44 +0100
commite8723b48d9ebbc1d1dd21b2840326c8e871facd7 (patch)
treea33895766dc8c8507dd4a1a63188ce68e07a6642
parent61022df13c766266c17e44e121cda057ce59382e (diff)
downloadbinutils-e8723b48d9ebbc1d1dd21b2840326c8e871facd7.zip
binutils-e8723b48d9ebbc1d1dd21b2840326c8e871facd7.tar.gz
binutils-e8723b48d9ebbc1d1dd21b2840326c8e871facd7.tar.bz2
Revert "MIPS: Use N64 by default for mips*64*-*-linux-gnuabi64"
This reverts commit d49f2dd78b08efa4e1ee51f5df5058846c2eb4fa. It was applied unapproved.
-rwxr-xr-xgas/configure2
-rw-r--r--gas/configure.ac2
-rw-r--r--ld/configure.tgt4
-rw-r--r--ld/testsuite/config/default.exp9
4 files changed, 6 insertions, 11 deletions
diff --git a/gas/configure b/gas/configure
index 4a6d472..0cebc4e 100755
--- a/gas/configure
+++ b/gas/configure
@@ -12280,7 +12280,7 @@ _ACEOF
esac
# Decide which ABI to target by default.
case ${target} in
- mips64*-openbsd* | mips*64*-linux-gnuabi64)
+ mips64*-openbsd* | mips64*-linux-gnuabi64)
mips_default_abi=N64_ABI
;;
mips64*-linux* | mips-sgi-irix6* | mips64*-freebsd* \
diff --git a/gas/configure.ac b/gas/configure.ac
index 20939b6..6b978aa 100644
--- a/gas/configure.ac
+++ b/gas/configure.ac
@@ -399,7 +399,7 @@ changequote([,])dnl
esac
# Decide which ABI to target by default.
case ${target} in
- mips64*-openbsd* | mips*64*-linux-gnuabi64)
+ mips64*-openbsd* | mips64*-linux-gnuabi64)
mips_default_abi=N64_ABI
;;
mips64*-linux* | mips-sgi-irix6* | mips64*-freebsd* \
diff --git a/ld/configure.tgt b/ld/configure.tgt
index 44079ae..f937f78 100644
--- a/ld/configure.tgt
+++ b/ld/configure.tgt
@@ -592,7 +592,7 @@ mips*-*-vxworks*) targ_emul=elf32ebmipvxworks
;;
mips*-*-windiss) targ_emul=elf32mipswindiss
;;
-mips*64*el-*-linux-gnuabi64)
+mips64*el-*-linux-gnuabi64)
targ_emul=elf64ltsmip
targ_extra_emuls="elf64btsmip elf32ltsmipn32 elf32btsmipn32 elf32ltsmip elf32btsmip"
targ_extra_libpath=$targ_extra_emuls
@@ -601,7 +601,7 @@ mips64*el-*-linux-*) targ_emul=elf32ltsmipn32
targ_extra_emuls="elf32btsmipn32 elf32ltsmip elf32btsmip elf64ltsmip elf64btsmip"
targ_extra_libpath=$targ_extra_emuls
;;
-mips*64*-*-linux-gnuabi64)
+mips64*-*-linux-gnuabi64)
targ_emul=elf64btsmip
targ_extra_emuls="elf64ltsmip elf32btsmipn32 elf32ltsmipn32 elf32btsmip elf32ltsmip"
targ_extra_libpath=$targ_extra_emuls
diff --git a/ld/testsuite/config/default.exp b/ld/testsuite/config/default.exp
index d60f629..8374920 100644
--- a/ld/testsuite/config/default.exp
+++ b/ld/testsuite/config/default.exp
@@ -177,16 +177,11 @@ 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.
-# mips*64*-*linux-gnuabi64 compiler defaults to N64 ABI.
-if {([istarget mips64*-*-linux*] || [istarget mips*64*-*-linux-gnuabi64]) &&
+if {[istarget mips64*-*-linux*] &&
(![board_info [target_info name] exists multilib_flags] ||
![string match "*-mabi" [board_info [target_info name] multilib_flags]])
} {
- if { [istarget *-*-gnuabi64] } {
- append gcc_B_opt " -mabi=64"
- } else {
- append gcc_B_opt " -mabi=n32"
- }
+ append gcc_B_opt " -mabi=n32"
}
if { [istarget rx-*-*] } {