This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Does -march=r5000 imply HAVE_64BIT_GPRS?
- To: binutils at sourceware dot cygnus dot com
- Subject: Re: Does -march=r5000 imply HAVE_64BIT_GPRS?
- From: Thiemo Seufer <ica2_ts at csv dot ica dot uni-stuttgart dot de>
- Date: Fri, 17 Aug 2001 19:35:37 +0200
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