RFC & patch: Rework MIPS command-line handling
Thiemo Seufer
ica2_ts@csv.ica.uni-stuttgart.de
Mon Jul 15 13:18:00 GMT 2002
Richard Sandiford wrote:
[snip]
> The main difficulty with dropping the ABI selection entirely
> is: how do you select between the 32-bit and 64-bit versions
> of the EABIs? mipstx39-elf-gcc generates 32-bit EABI code
> by default. What happens if you select a 64-bit processor?
> Options I can see:
>
> 1. Stick with the idea in the patch I sent. Selecting a 64-bit
> processor would usually select the 64-bit EABI, but adding
> -mgp32 forces the 32-bit version.
>
> 2. Reverse of (1). You get the 32-bit version of the EABI
> unless you use -mgp64.
>
> 3. Add eabi32, eabi64, meabi32 and meabi64 to -mabi. You get
> the 32-bit version unless you use -mabi=eabi64.
I would prefer the third option. At least it makes explicit
what's going on and does not interfere with other ABIs.
Thiemo
More information about the Binutils
mailing list