linux-mips
[Top] [All Lists]

Re: [patch] 2.4: Support for newer gcc/gas options

To: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Subject: Re: [patch] 2.4: Support for newer gcc/gas options
From: Yoichi Yuasa <yuasa@hh.iij4u.or.jp>
Date: Wed, 17 Dec 2003 19:57:29 +0900
Cc: yuasa@hh.iij4u.or.jp, ralf@linux-mips.org, linux-mips@linux-mips.org
In-reply-to: <Pine.LNX.4.55.0312161822240.8262@jurand.ds.pg.gda.pl>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <Pine.LNX.4.55.0312161822240.8262@jurand.ds.pg.gda.pl>
Sender: linux-mips-bounce@linux-mips.org
Hello,

On Tue, 16 Dec 2003 22:33:41 +0100 (CET)
"Maciej W. Rozycki" <macro@ds2.pg.gda.pl> wrote:

> Hello,
> 
>  Since command line options for both gcc and gas has been changed in an 
> incompatible way recently and also there are stricter requirements on 
> certain options when used simultaneously, I propose the following patch to 
> our top-level Makefiles to let the optimal set of options be selected at 
> the build time.  The intent is to try modern options first, then obsolete 
> ones and to set gas options independently to gcc ones as one may be more 
> inclined to upgrade binutils that his old trusty gcc.
> 
>  The patch implements a make macro called set_gccflags which accepts two
> sets of options consisting of a CPU name and an ISA name each.  Within 
> both sets "-march=" and failing that "-mcpu=" is checked with the CPU name 
> and the ISA name is checked simultaneously.  For gcc if the first set of 
> options fails, the second one is selected even if it would lead to a 
> failure.  For gas both sets are checked and if none succeeds, an empty set 
> is selected.
> 
>  The 32-bit variation accepts a fifth option as well to permit ABI
> selection with an ISA when the "-mabi=" option is unavailable, which is 
> also tested.
> 
>  Beside letting one use modern tools at all the patch also enables CPU
> selection using newly added (and closer matching) settings like
> "-march=mips64" without forcing users to upgrade tools provided a
> conservative fallback is provided.
> 
>  Comments, thoughts, opinions, etc. will be appreciated.

This patch is wonderful for vr4100 series!

I'm using "GNU assembler version 2.14.90.0.6".
The gcc option is set up appropriately.

Thanks,

Yoichi



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