All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dimitri Torfs <dimitri@sonycom.com>
To: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Cc: linux-mips@linux-mips.org
Subject: Re: Support for newer gcc/gas options
Date: Tue, 20 Jan 2004 21:40:28 +0100	[thread overview]
Message-ID: <20040120204026.GA9470@sonycom.com> (raw)
In-Reply-To: <Pine.LNX.4.55.0401201332080.12841@jurand.ds.pg.gda.pl>

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

  parent reply	other threads:[~2004-01-20 20:40 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-23 11:46 Support for newer gcc/gas options Dimitri Torfs
2003-12-23 12:05 ` Maciej W. Rozycki
2004-01-09 22:01   ` Dimitri Torfs
2004-01-10  1:19     ` Thiemo Seufer
2004-01-10  8:03       ` Dimitri Torfs
2004-01-20 12:37   ` Maciej W. Rozycki
2004-01-20 12:45     ` Thiemo Seufer
2004-01-20 12:59       ` Maciej W. Rozycki
2004-01-20 20:40     ` Dimitri Torfs [this message]
2004-01-21 14:09       ` Maciej W. Rozycki
2004-01-21 14:51         ` Dimitri Torfs
2004-01-21 18:35           ` Dimitri Torfs
2004-01-22 16:10             ` Maciej W. Rozycki
2004-01-25 19:17               ` Dimitri Torfs
2004-01-26 18:08                 ` Maciej W. Rozycki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040120204026.GA9470@sonycom.com \
    --to=dimitri@sonycom.com \
    --cc=linux-mips@linux-mips.org \
    --cc=macro@ds2.pg.gda.pl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.