[PATCH] Add .set arch=FOO support to MIPS gas.

Thiemo Seufer ica2_ts@csv.ica.uni-stuttgart.de
Mon Jun 30 09:29:00 GMT 2003


cgd@broadcom.com wrote:
[snip]
> > But they are semantically different. arch= changes the ISA, but
> > mipsX does not change the architecture.
> 
> right, what i meant was something like:
> 
>         if (mipsN or arch=) {
>           if (mips0)
>                 set ISA
>           else if (mips1)
>                 ...
>           else if (arch=)
>                 handle mipsN, i.e. set arch and ISA
>           else
>                 bugs mipsN values.
>           switch on ISA to set gp32/gp64 as is there now.
>         }
> 
> hmm, here's a question (meant to ask this before)...
> 
> should ".set mips0" reset the *arch* to the default, too?
> 
> (i don't see any *harm* in it, and then both .set mips0 and .set
> arch=default would restore arch/isa sanity?)

It would disable CPU special opcodes then, which is a behaviour change
and probably confusing. So it shouldn't change IMHO.


Thiemo



More information about the Binutils mailing list