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: Wed, 26 Feb 2003 11:54:05 +0900
Cc: yoichi_yuasa@montavista.co.jp, ralf@linux-mips.org, linux-mips@linux-mips.org
In-reply-to: <Pine.GSO.3.96.1030225135016.14659C-100000@delta.ds2.pg.gda.pl>
Organization: MontaVista Software Japan, Inc.
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20030225124850.32cfa6f5.yoichi_yuasa@montavista.co.jp> <Pine.GSO.3.96.1030225135016.14659C-100000@delta.ds2.pg.gda.pl>
Sender: linux-mips-bounce@linux-mips.org
On Tue, 25 Feb 2003 14:18:38 +0100 (MET)
"Maciej W. Rozycki" <macro@ds2.pg.gda.pl> wrote:

> On Tue, 25 Feb 2003, Yoichi Yuasa wrote:
> 
> > binutils -mcpu option for VR4100 series
> > 
> > 2.10:
> >         * VR4100
> >         * vr4100
> >         * 4100
> >         * mips64vr4100
> >         * r4100
> > 
> > 2.11:
> > 2.12:
> > 2.13:
> >         * VR4100
> >         * 4100
> >         * mips64vr4100
> >         * r4100
> 
>  They are case insensitive, which is why the redundancy was removed.
> 
> > In addition for the VR4100 series, there is an -m4100 option.
> 
>  Which is deprecated and scheduled for removal in the future.
> 
> > As for us, it is best to use the following option.
> > 
> > GCCFLAGS        += -mcpu=r4100 -mips2 -Wa,-m4100,--trap
> > 
> > Would you apply this patch to CVS?
> 
>  The trunk version of gas only supports "-m4100" and "vr4100" (but leading
> letters are dropped if no exact match happens) for "-mcpu=" (which is also
> deprecated), "-march=" and "-mtune=".  Additionally it supports "vr4111",
> "vr4111", "vr4120", "vr4130" and "vr4181".  I suggest you go for: 
> 
> GCCFLAGS      += -mcpu=vr4100 -mips2 -Wa,--trap
> 
> for now as other options may trigger an error depending on the version of
> tools used ("-mcpu=" is passed down to gas).

With the following versions.
I cannot compile with an instruction peculiar to VR4100, if there is no -m4100.

GNU ld version 2.12.90.0.1 20020307
GNU ld version 2.12.1

We need to add -m4100 option.

GCCFLAGS        += -mcpu=vr4100 -mips2 -Wa,-m4100,--trap

>  I think we'll soon have to cook up a run-time gcc check for what is
> accepted and use the "-march=" and "-mtune=" options preferably and
> failing that, revert to legacy options like above.

Thanks,

Yoichi

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