Date: Fri, 6 Sep 2002 13:30:26 -0700 From: Kris Kennaway <kris@obsecurity.org> To: Peter Wemm <peter@wemm.org> Cc: Darren Pilgrim <dmp@pantherdragon.org>, Matthew Dillon <dillon@apollo.backplane.com>, Dan Nelson <dnelson@allantgroup.com>, Terry Lambert <tlambert2@mindspring.com>, Jason Andresen <jandrese@mitre.org>, Dmitry Morozovsky <marck@rinet.ru>, hackers@FreeBSD.ORG Subject: Updating bsd.cpu.mk (Re: -fomit-frame-pointer for the world build) Message-ID: <20020906203026.GA78157@xor.obsecurity.org> In-Reply-To: <20020807015511.A1A092A7D6@canning.wemm.org> References: <3D50664F.71603B49@pantherdragon.org> <20020807015511.A1A092A7D6@canning.wemm.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--EeQfGwPcQSOJBaQU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 06, 2002 at 06:55:11PM -0700, Peter Wemm wrote: > `-mcpu=3DCPU-TYPE' > Tune to CPU-TYPE everything applicable about the generated code, > except for the ABI and the set of available instructions. The > choices for CPU-TYPE are `i386', `i486', `i586', `i686', > `pentium', `pentium-mmx', `pentiumpro', `pentium2', `pentium3', > `pentium4', `k6', `k6-2', `k6-3', `athlon', `athlon-tbird', > `athlon-4', `athlon-xp' and `athlon-mp'. >=20 > You can also add -msse, -msse2, -m3dnow to use those extensions. It would > appear that our bsd.cpu.mk file is out of date and is missing the newer > cpu types. How about the following patch (I've only tested 'pentium3'): Index: share/mk/bsd.cpu.mk =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /usr/home/ncvs/src/share/mk/bsd.cpu.mk,v retrieving revision 1.16 diff -u -r1.16 bsd.cpu.mk --- share/mk/bsd.cpu.mk 2 Aug 2002 18:04:22 -0000 1.16 +++ share/mk/bsd.cpu.mk 6 Sep 2002 20:25:46 -0000 @@ -28,8 +28,8 @@ CPUTYPE =3D i686 . elif ${CPUTYPE} =3D=3D "pentium" CPUTYPE =3D i586 -. elif ${CPUTYPE} =3D=3D "athlon" -CPUTYPE =3D k7 +. elif ${CPUTYPE} =3D=3D "k7" +CPUTYPE =3D athlon . endif . endif =20 @@ -42,20 +42,30 @@ # http://gcc.gnu.org/onlinedocs/gcc/RS-6000-and-PowerPC-Options.html =20 . if ${MACHINE_ARCH} =3D=3D "i386" -. if ${CPUTYPE} =3D=3D "k7" +. if ${CPUTYPE} =3D=3D "athlon-mp" +_CPUCFLAGS =3D -march=3Dathlon-mp +. elif ${CPUTYPE} =3D=3D "athlon-xp" +_CPUCFLAGS =3D -march=3Dathlon-xp +. elif ${CPUTYPE} =3D=3D "athlon-4" +_CPUCFLAGS =3D -march=3Dathlon-4 +. elif ${CPUTYPE} =3D=3D "athlon-tbird" +_CPUCFLAGS =3D -march=3Dathlon-tbird +. elif ${CPUTYPE} =3D=3D "athlon" _CPUCFLAGS =3D -march=3Dathlon +. elif ${CPUTYPE} =3D=3D "k6-3" +_CPUCFLAGS =3D -march=3Dk6-3 . elif ${CPUTYPE} =3D=3D "k6-2" -_CPUCFLAGS =3D -march=3Dk6 +_CPUCFLAGS =3D -march=3Dk6-2 . elif ${CPUTYPE} =3D=3D "k6" _CPUCFLAGS =3D -march=3Dk6 . elif ${CPUTYPE} =3D=3D "k5" _CPUCFLAGS =3D -march=3Dpentium . elif ${CPUTYPE} =3D=3D "p4" -_CPUCFLAGS =3D -march=3Dpentiumpro +_CPUCFLAGS =3D -march=3Dpentium4 . elif ${CPUTYPE} =3D=3D "p3" -_CPUCFLAGS =3D -march=3Dpentiumpro +_CPUCFLAGS =3D -march=3Dpentium3 . elif ${CPUTYPE} =3D=3D "p2" -_CPUCFLAGS =3D -march=3Dpentiumpro +_CPUCFLAGS =3D -march=3Dpentium2 . elif ${CPUTYPE} =3D=3D "i686" _CPUCFLAGS =3D -march=3Dpentiumpro . elif ${CPUTYPE} =3D=3D "i586/mmx" Index: share/examples/etc/make.conf =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /usr/home/ncvs/src/share/examples/etc/make.conf,v retrieving revision 1.198 diff -u -r1.198 make.conf --- share/examples/etc/make.conf 2 Aug 2002 18:04:22 -0000 1.198 +++ share/examples/etc/make.conf 6 Sep 2002 20:25:19 -0000 @@ -24,7 +24,7 @@ # NO_CPU_CFLAGS variable below. # Currently the following CPU types are recognized: # Intel x86 architecture: -# (AMD CPUs) k7 k6-2 k6 k5 +# (AMD CPUs) athlon-mp athlon-xp athlon-4 athlon-tbird athlon k6-3 k= 6-2 k6 k5 # (Intel CPUs) p4 p3 p2 i686 i586/mmx i586 i486 i386 # Alpha/AXP architecture: ev6 pca56 ev56 ev5 ev45 ev4 # Intel ia64 architecture: itanium --EeQfGwPcQSOJBaQU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE9eRBhWry0BWjoQKURAg2NAJ0ZpUWXoWQmXdPEX/2dgNONuwrSWwCg3ii8 Tt16zWIfWLcis7ai9VVin0A= =fvmy -----END PGP SIGNATURE----- --EeQfGwPcQSOJBaQU-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020906203026.GA78157>