This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC & patch: Rework MIPS command-line handling


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]