public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [2.4] [2.5] [i386] Add support for GCC 3.1 -march=pentium{-mmx,3,4}
@ 2002-05-25 21:01 Luca Barbieri
  2002-05-25 23:37 ` J.A. Magallon
  0 siblings, 1 reply; 16+ messages in thread
From: Luca Barbieri @ 2002-05-25 21:01 UTC (permalink / raw)
  To: Linus Torvalds, Marcelo Tosatti; +Cc: Linux-Kernel ML

[-- Attachment #1: Type: text/plain, Size: 969 bytes --]

This trival patch adds support for GCC 3.1 -march=pentium{-mmx,3,4}
option and applies to both 2.4 and 2.5.

--- linux-vanilla/arch/i386/Makefile	Wed Apr 10 14:37:33 2002
+++ linux/arch/i386/Makefile	Sat May 25 22:53:08 2002
@@ -43,7 +43,7 @@
 endif
 
 ifdef CONFIG_M586MMX
-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_M686
@@ -51,11 +51,11 @@
 endif
 
 ifdef CONFIG_MPENTIUMIII
-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


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2002-05-30 10:45 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-25 21:01 [PATCH] [2.4] [2.5] [i386] Add support for GCC 3.1 -march=pentium{-mmx,3,4} Luca Barbieri
2002-05-25 23:37 ` J.A. Magallon
2002-05-25 22:53   ` Dave Jones
2002-05-25 23:29     ` Luigi Genoni
2002-05-25 23:49       ` Ruth Ivimey-Cook
2002-05-26  0:30         ` Dave Jones
2002-05-27  8:53           ` Pavel Machek
2002-05-29 11:42             ` Dave Jones
2002-05-29 19:57               ` Pavel Machek
2002-05-30  6:40                 ` Jan Hubicka
2002-05-30 10:25                   ` David Woodhouse
2002-05-30 10:45                     ` Jan Hubicka
2002-05-26  1:08         ` J.A. Magallon
2002-05-26  0:21           ` Dave Jones
     [not found]   ` <1022380785.11859.59.camel@irongate.swansea.linux.org.uk>
2002-05-26  9:11     ` J.A. Magallon
2002-05-26 19:14       ` Alan Cox

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