From owner-freebsd-hackers Tue Sep 10 21:42:12 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F37A37B400 for ; Tue, 10 Sep 2002 21:42:07 -0700 (PDT) Received: from dragon.nuxi.com (trang.nuxi.com [66.92.13.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA57D43E3B for ; Tue, 10 Sep 2002 21:42:06 -0700 (PDT) (envelope-from obrien@NUXI.com) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.12.6/8.12.2) with ESMTP id g8B4fufO091433; Tue, 10 Sep 2002 21:41:56 -0700 (PDT) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.6/8.12.5/Submit) id g8B4fuRm091432; Tue, 10 Sep 2002 21:41:56 -0700 (PDT) Date: Tue, 10 Sep 2002 21:41:56 -0700 From: "David O'Brien" To: Kris Kennaway Cc: Peter Wemm , Darren Pilgrim , Matthew Dillon , Dan Nelson , Terry Lambert , Jason Andresen , Dmitry Morozovsky , hackers@FreeBSD.ORG Subject: Re: Updating bsd.cpu.mk (Re: -fomit-frame-pointer for the world build) Message-ID: <20020911044156.GB91353@dragon.nuxi.com> Reply-To: obrien@FreeBSD.ORG Mail-Followup-To: David O'Brien , Kris Kennaway , Peter Wemm , Darren Pilgrim , Matthew Dillon , Dan Nelson , Terry Lambert , Jason Andresen , Dmitry Morozovsky , hackers@FreeBSD.ORG References: <3D50664F.71603B49@pantherdragon.org> <20020807015511.A1A092A7D6@canning.wemm.org> <20020906203026.GA78157@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020906203026.GA78157@xor.obsecurity.org> User-Agent: Mutt/1.4i X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Sep 06, 2002 at 01:30:26PM -0700, Kris Kennaway wrote: > > `-mcpu=CPU-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'. > > > > 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'): I'd like to commit these Athlon changes. I find this much easier to understand. Index: bsd.cpu.mk =================================================================== RCS file: /home/ncvs/src/share/mk/bsd.cpu.mk,v retrieving revision 1.18 diff -u -r1.18 bsd.cpu.mk --- bsd.cpu.mk 7 Sep 2002 01:26:10 -0000 1.18 +++ bsd.cpu.mk 8 Sep 2002 23:25:51 -0000 @@ -42,16 +42,8 @@ # http://gcc.gnu.org/onlinedocs/gcc/RS-6000-and-PowerPC-Options.html . if ${MACHINE_ARCH} == "i386" -. if ${CPUTYPE} == "athlon-mp" -_CPUCFLAGS = -march=athlon-mp -. elif ${CPUTYPE} == "athlon-xp" -_CPUCFLAGS = -march=athlon-xp -. elif ${CPUTYPE} == "athlon-4" -_CPUCFLAGS = -march=athlon-4 -. elif ${CPUTYPE} == "athlon-tbird" -_CPUCFLAGS = -march=athlon-tbird -. elif ${CPUTYPE} == "athlon" -_CPUCFLAGS = -march=athlon +. if ${CPUTYPE} == "athlon-mp" || ${CPUTYPE} == "athlon-xp" || ${CPUTYPE} == "athlon-4" || ${CPUTYPE} == "athlon" +_CPUCFLAGS = -march=${CPUTYPE} . elif ${CPUTYPE} == "k6-3" _CPUCFLAGS = -march=k6-3 . elif ${CPUTYPE} == "k6-2" @@ -105,16 +97,10 @@ # presence of a CPU feature. .if ${MACHINE_ARCH} == "i386" -. if ${CPUTYPE} == "athlon-mp" -MACHINE_CPU = sse k7 3dnow mmx k6 k5 i586 i486 i386 -. elif ${CPUTYPE} == "athlon-xp" -MACHINE_CPU = sse k7 3dnow mmx k6 k5 i586 i486 i386 -. elif ${CPUTYPE} == "athlon-4" -MACHINE_CPU = sse k7 3dnow mmx k6 k5 i586 i486 i386 -. elif ${CPUTYPE} == "athlon-tbird" -MACHINE_CPU = k7 3dnow mmx k6 k5 i586 i486 i386 -. elif ${CPUTYPE} == "athlon" -MACHINE_CPU = k7 3dnow mmx k6 k5 i586 i486 i386 +. if ${CPUTYPE} == "athlon-mp" || ${CPUTYPE} == "athlon-xp" || ${CPUTYPE} == "athlon-4" +MACHINE_CPU = athlon-xp k7 3dnow see mmx k6 k5 i586 i486 i386 +. elif ${CPUTYPE} == "athlon" || ${CPUTYPE} == "athlon-tbird" +MACHINE_CPU = athlon k7 3dnow mmx k6 k5 i586 i486 i386 . elif ${CPUTYPE} == "k6-3" MACHINE_CPU = 3dnow mmx k6 k5 i586 i486 i386 . elif ${CPUTYPE} == "k6-2" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message