* configure.in (MIPS_DEFAULT_ABI): AC_DEFINE.

* config/tc-mips.c (mips_after_parse_args): Set mips_abi to it.
* config.in, configure: Rebuilt.
This commit is contained in:
Alexandre Oliva 2003-05-07 05:10:45 +00:00
parent aa701218b7
commit cac012d6d3
5 changed files with 329 additions and 243 deletions

View File

@ -1,3 +1,9 @@
2003-05-06 Alexandre Oliva <aoliva@redhat.com>
* configure.in (MIPS_DEFAULT_ABI): AC_DEFINE.
* config/tc-mips.c (mips_after_parse_args): Set mips_abi to it.
* config.in, configure: Rebuilt.
2003-05-05 H.J. Lu <hjl@gnu.org>
* config/tc-mips.c (tc_gen_reloc): Add addend just once if

View File

@ -172,6 +172,9 @@
/* Generate 64-bit code by default on MIPS targets. */
#undef MIPS_DEFAULT_64BIT
/* Choose a default ABI for MIPS targets. */
#undef MIPS_DEFAULT_ABI
/* Default architecture. */
#undef DEFAULT_ARCH

View File

@ -11225,6 +11225,9 @@ mips_after_parse_args ()
g_switch_value = 0;
}
if (mips_abi == NO_ABI)
mips_abi = MIPS_DEFAULT_ABI;
/* The following code determines the architecture and register size.
Similar code was added to GCC 3.3 (see override_options() in
config/mips/mips.c). The GAS and GCC code should be kept in sync

546
gas/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -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