This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: check mips abi x linker emulation compatibility
- From: "Maciej W. Rozycki" <macro at ds2 dot pg dot gda dot pl>
- To: Alexandre Oliva <aoliva at redhat dot com>
- Cc: Thiemo Seufer <ica2_ts at csv dot ica dot uni-stuttgart dot de>, echristo at redhat dot com, binutils at sources dot redhat dot com
- Date: Tue, 20 May 2003 22:40:33 +0200 (MET DST)
- Subject: Re: check mips abi x linker emulation compatibility
- Organization: Technical University of Gdansk
- Reply-to: "Maciej W. Rozycki" <macro at ds2 dot pg dot gda dot pl>
[... catching up after having noticed I was kicked off the list, sigh.]
On 7 May 2003, Alexandre Oliva wrote:
> Here's a revised patch, that passes all tests on mips64-linux, and
> doesn't introduce any regression on mips-elf. Ok?
[...]
> Index: gas/configure.in
> ===================================================================
> RCS file: /cvs/uberbaum/gas/configure.in,v
> retrieving revision 1.129
> diff -u -p -r1.129 configure.in
> --- gas/configure.in 28 Apr 2003 23:48:42 -0000 1.129
> +++ gas/configure.in 7 May 2003 03:57:08 -0000
> @@ -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
>
I would really like to see the switch above as:
case ${target} in
mips64*-linux*)
mips_default_abi=N64_ABI
;;
mipsn32*-linux* | mips-sgi-irix6*)
mips_default_abi=N32_ABI
;;
mips*-linux*)
mips_default_abi=O32_ABI
;;
*)
mips_default_abi=NO_ABI
;;
esac
so that one can select which one of the two: n32, (n)64 ABIs he wants as a
default.
I have a patch that complements the change for bfd and ld, I'm sending
immediately for a discussion.
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +