[PATCH] [2.4] [2.5] [i386] Add support for GCC 3.1

Luca Barbieri (ldb@ldb.ods.org)
25 May 2002 23:01:14 +0200


--=-QZv9z27s94DCBow+65XG
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

This trival patch adds support for GCC 3.1 -march=3Dpentium{-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
=20
ifdef CONFIG_M586MMX
-CFLAGS +=3D -march=3Di586
+CFLAGS +=3D $(shell if $(CC) -march=3Dpentium-mmx -S -o /dev/null -xc /dev=
/null >/dev/null 2>&1; then echo "-march=3Dpentium-mmx"; else echo "-march=
=3Di586"; fi)
endif
=20
ifdef CONFIG_M686
@@ -51,11 +51,11 @@
endif
=20
ifdef CONFIG_MPENTIUMIII
-CFLAGS +=3D -march=3Di686
+CFLAGS +=3D $(shell if $(CC) -march=3Dpentium3 -S -o /dev/null -xc /dev/nu=
ll >/dev/null 2>&1; then echo "-march=3Dpentium3"; else echo "-march=3Di686=
"; fi)
endif
=20
ifdef CONFIG_MPENTIUM4
-CFLAGS +=3D -march=3Di686
+CFLAGS +=3D $(shell if $(CC) -march=3Dpentium4 -S -o /dev/null -xc /dev/nu=
ll >/dev/null 2>&1; then echo "-march=3Dpentium4"; else echo "-march=3Di686=
"; fi)
endif
=20
ifdef CONFIG_MK6

--=-QZv9z27s94DCBow+65XG
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQA87/uZdjkty3ft5+cRAjifAKCVXxhOaGkwcJyh/vCMDSCsg4h4uACgmaLi
YsaSQ4QYzCvcMwY+ISUb8dI=
=e2VT
-----END PGP SIGNATURE-----

--=-QZv9z27s94DCBow+65XG--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/