public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gcc3-march flags
@ 2002-05-29 14:39 J.A. Magallon
  0 siblings, 0 replies; only message in thread
From: J.A. Magallon @ 2002-05-29 14:39 UTC (permalink / raw)
  To: Lista Linux-Kernel

Hi.

On top of previous arch-CONFIG reorder, this patch adds support for gcc3
-march flags:

diff -ruN linux-2.4.19-pre8-jam4-0/arch/i386/Makefile linux-2.4.19-pre8-jam4/arch/i386/Makefile
--- linux-2.4.19-pre8-jam4-0/arch/i386/Makefile	2002-05-29 00:30:39.000000000 +0200
+++ linux-2.4.19-pre8-jam4/arch/i386/Makefile	2002-05-29 00:32:27.000000000 +0200
@@ -43,23 +43,23 @@
 endif
 
 ifdef CONFIG_MPENTIUMMMX
-CFLAGS += -march=i586
+CFLAGS += $(shell if $(CC) -march=pentium-mmx -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-march=pentium-mmx"; else echo "-march=i586"; fi)
 endif
 
 ifdef CONFIG_MPENTIUMPRO
-CFLAGS += -march=i686
+CFLAGS += $(shell if $(CC) -march=pentium-pro -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-march=pentium-pro"; else echo "-march=i686"; fi)
 endif
 
 ifdef CONFIG_MPENTIUM2
-CFLAGS += -march=i686
+CFLAGS += $(shell if $(CC) -march=pentium2 -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-march=pentium2"; else echo "-march=i686"; fi)
 endif
 
 ifdef CONFIG_MPENTIUM3
-CFLAGS += -march=i686
+CFLAGS += $(shell if $(CC) -march=pentium3 -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-march=pentium3"; else echo "-march=i686"; fi)
 endif
 
 ifdef CONFIG_MPENTIUM4
-CFLAGS += -march=i686
+CFLAGS += $(shell if $(CC) -march=pentium4 -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-march=pentium4"; else echo "-march=i686"; fi)
 endif
 
 ifdef CONFIG_MK6


-- 
J.A. Magallon                           #  Let the source be with you...        
mailto:jamagallon@able.es
Mandrake Linux release 8.3 (Cooker) for i586
Linux werewolf 2.4.19-pre9-jam1 #1 SMP mié may 29 02:20:48 CEST 2002 i686

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-05-29 14:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-29 14:39 [PATCH] gcc3-march flags J.A. Magallon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox