Does -march=r5000 imply HAVE_64BIT_GPRS?

Thiemo Seufer ica2_ts@csv.ica.uni-stuttgart.de
Fri Aug 17 10:35:00 GMT 2001


H . J . Lu wrote:
[snip]
> > > > > +      /* -march=xxxx is not compatible with -mipsN. We use -mipsN to
> > > > > +	 set the BFD arch.  */
> > > > 
> > > > Why should they be incompatible?
> > > 
> > > mips_isa_from_cpu set by -march=r5000 is ISA_MIPS4. But mips_opts.isa
> > > from -mips2 is ISA_MIPS2.
> > 
> > Well, and why shouldn't an arch be allowed to use a ISA below it's
> > default _and_ it's arch specific insns in the same code?
> 
> That is exactly what my patch does.

No, your patch replaces the specified -march= by the default arch
for the also given -mips* option, while leaving -mtune= as is.

> With "-march=r5000 -mips2",
> currently we set the ISA level to MIPS4 in BFD. That is my
> original problem. My patch will change it to set the ISA level
> to MIPS2 in BFD.

With your patch,
    -march=r5000 -mips2
effectively results in
    -march=r6000 -mtune=r5000 -mips2


Thiemo



More information about the Binutils mailing list