linux-mips
[Top] [All Lists]

Re: Support for newer gcc/gas options

To: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Subject: Re: Support for newer gcc/gas options
From: Dimitri Torfs <dimitri@sonycom.com>
Date: Tue, 20 Jan 2004 21:40:28 +0100
Cc: linux-mips@linux-mips.org
In-reply-to: <Pine.LNX.4.55.0401201332080.12841@jurand.ds.pg.gda.pl>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20031223114644.GA5458@sonycom.com> <Pine.LNX.4.55.0312231303030.27594@jurand.ds.pg.gda.pl> <Pine.LNX.4.55.0401201332080.12841@jurand.ds.pg.gda.pl>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.4.1i
On Tue, Jan 20, 2004 at 01:37:16PM +0100, Maciej W. Rozycki wrote:
> 
>  It took a bit longer than I planned, sorry.  Anyway, here are two
> functionally equivalent patches, for 2.4 and the head, that remove an ISA
> specification if a tool supports "-march=" and "-mabi=" at the same time.  
> Please try the appropriate one.
> 

Tried the head one, it had some typos (patch follows). Unfortunately, as I wrote
earlier, gcc-3.2 doesn't set the ISA correctly when using -march=, so
it doesn't work for 3.2. 


--- linux-mips-2.6.orig/arch/mips/Makefile      2004-01-06 21:17:57.000000000 
+0100
+++ linux.work/arch/mips/Makefile       2004-01-20 21:14:12.000000000 +0100
@@ -111,6 +111,12 @@
 if test x$(gcc-abi) != x$(gas-abi); then \
        gas_abi="-Wa,-$(gas-abi) -Wa,-mgp$(gcc-abi)"; \
 fi; \
+if test "$$gcc_opt" = -march= && test -n "$$gcc_abi"; then \
+       gcc_isa=; \
+fi; \
+if test "$$gas_opt" = -Wa,-march= && test -n "$$gas_abi"; then \
+       gas_isa=; \
+fi; \
 echo $$gcc_abi $$gcc_opt$$gcc_cpu $$gcc_isa $$gas_abi $$gas_opt$$gas_cpu 
$$gas_isa)
 
 #


-- 
Dimitri Torfs       |  NSCE 
dimitri@sonycom.com |  The Corporate Village
tel: +32 2 7008541  |  Da Vincilaan 7 - D1 
fax: +32 2 7008622  |  B-1935 Zaventem - Belgium


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