linux-mips
[Top] [All Lists]

Re: Change -mcpu option for VR41xx

To: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Subject: Re: Change -mcpu option for VR41xx
From: Yoichi Yuasa <yoichi_yuasa@montavista.co.jp>
Date: Fri, 28 Feb 2003 12:50:16 +0900
Cc: yoichi_yuasa@montavista.co.jp, ralf@linux-mips.org, linux-mips@linux-mips.org
In-reply-to: <Pine.GSO.3.96.1030227140134.19733F-100000@delta.ds2.pg.gda.pl>
Organization: MontaVista Software Japan, Inc.
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20030227213707.5d8eb02a.yoichi_yuasa@montavista.co.jp> <Pine.GSO.3.96.1030227140134.19733F-100000@delta.ds2.pg.gda.pl>
Sender: linux-mips-bounce@linux-mips.org
On Thu, 27 Feb 2003 14:07:21 +0100 (MET)
"Maciej W. Rozycki" <macro@ds2.pg.gda.pl> 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-2.12.90.0.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 "
                 "-mtune instead."));
    }

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.

Yoichi

<Prev in Thread] Current Thread [Next in Thread>