On Thu, 27 Feb 2003 14:07:21 +0100 (MET)
"Maciej W. Rozycki" <email@example.com> wrote:
> On Thu, 27 Feb 2003, Yoichi Yuasa wrote:
> > > Ah, I see how it happens now -- "-mipsN" has a higher priority than
> > > "-mcpu=" (but lower than "-march=") so in this case "-mips2" overrides
> > > "-mcpu=vr4100". How about:
> > >
> > > GCCFLAGS += -mcpu=vr4100 -Wa,--trap
> > >
> > > then?
> > That is fine.
> > However, the following warning is displayed.
> > Warning: The -mcpu option is deprecated. Please use -march and -mtune
> > instead.
> Does is disappear with "-m4100"?
Yes it does.
> That would be strange. And "-mcpu=" is
> indeed deprecated, but it works for most versions and "-march=" and
> "-mtune=" are too new to be used by everyone. But as I wrote, we will end
> with a test for these options eventually as "-mcpu=" is already removed
> from the trunk. As a result the warning will disappear.
binutils-220.127.116.11.1/gas/config/tc-mips.c has a following part.
if (mips_arch == CPU_UNKNOWN && mips_cpu != CPU_UNKNOWN)
ci = mips_cpu_info_from_cpu (mips_cpu);
assert (ci != NULL);
mips_arch = ci->cpu;
as_warn (_("The -mcpu option is deprecated. Please use -march and "
When I set up following GCCFLAGS,
GCCFLAGS += -mcpu=vr4100 -Wa,--trap
the mips_arch is CPU_UNKNOWN and the mips_cpu is CPU_VR4100.
The gas print out warnning.