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]

Re: Does -march=r5000 imply HAVE_64BIT_GPRS?


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


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