aboutsummaryrefslogtreecommitdiff
path: root/gas/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'gas/configure.in')
-rw-r--r--gas/configure.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/gas/configure.in b/gas/configure.in
index 82b8da8..7b7b40e 100644
--- a/gas/configure.in
+++ b/gas/configure.in
@@ -580,12 +580,26 @@ changequote([,])dnl
mips_default_64bit=0
;;
esac
+ # Decide which ABI to target by default.
+ case ${target} in
+ mips64*-linux* | mips-sgi-irix6*)
+ mips_default_abi=N32_ABI
+ ;;
+ mips*-linux*)
+ mips_default_abi=O32_ABI
+ ;;
+ *)
+ mips_default_abi=NO_ABI
+ ;;
+ esac
AC_DEFINE_UNQUOTED(MIPS_CPU_STRING_DEFAULT, "$mips_cpu",
[Default CPU for MIPS targets. ])
AC_DEFINE_UNQUOTED(USE_E_MIPS_ABI_O32, $use_e_mips_abi_o32,
[Allow use of E_MIPS_ABI_O32 on MIPS targets. ])
AC_DEFINE_UNQUOTED(MIPS_DEFAULT_64BIT, $mips_default_64bit,
[Generate 64-bit code by default on MIPS targets. ])
+ AC_DEFINE_UNQUOTED(MIPS_DEFAULT_ABI, $mips_default_abi,
+ [Choose a default ABI for MIPS targets. ])
;;
esac