From owner-freebsd-stable@FreeBSD.ORG Mon Jun 13 19:24:30 2005 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 80AAD16A41C for ; Mon, 13 Jun 2005 19:24:30 +0000 (GMT) (envelope-from noackjr@alumni.rice.edu) Received: from smtp823.mail.sc5.yahoo.com (smtp823.mail.sc5.yahoo.com [66.163.171.9]) by mx1.FreeBSD.org (Postfix) with SMTP id ADD3143D5C for ; Mon, 13 Jun 2005 19:24:29 +0000 (GMT) (envelope-from noackjr@alumni.rice.edu) Received: (qmail 76830 invoked from network); 13 Jun 2005 19:24:29 -0000 Received: from unknown (HELO optimator.noacks.org) (noacks@swbell.net@70.240.197.59 with login) by smtp823.mail.sc5.yahoo.com with SMTP; 13 Jun 2005 19:24:29 -0000 Received: from localhost (localhost [127.0.0.1]) by optimator.noacks.org (Postfix) with ESMTP id 5BEA76109; Mon, 13 Jun 2005 14:24:28 -0500 (CDT) Received: from optimator.noacks.org ([127.0.0.1]) by localhost (optimator.noacks.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 71642-17; Mon, 13 Jun 2005 14:24:26 -0500 (CDT) Received: from compgeek.noacks.org (compgeek [192.168.1.10]) by optimator.noacks.org (Postfix) with ESMTP id D66C360EC; Mon, 13 Jun 2005 14:24:26 -0500 (CDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by compgeek.noacks.org (8.13.4/8.13.3) with ESMTP id j5DJOPbT032377; Mon, 13 Jun 2005 14:24:26 -0500 (CDT) (envelope-from noackjr@alumni.rice.edu) Message-ID: <42ADDD64.4070901@alumni.rice.edu> Date: Mon, 13 Jun 2005 14:24:20 -0500 From: Jonathan Noack User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050428) X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?ISO-8859-1?Q?K=F6vesd=E1n_G=E1bor?= References: <3502.172.16.0.199.1118688995.squirrel@172.16.0.1> <42ADD87E.5010405@t-hosting.hu> In-Reply-To: <42ADD87E.5010405@t-hosting.hu> X-Enigmail-Version: 0.91.0.0 OpenPGP: id=991D8195; url=http://www.noacks.org/cert/noackjr.asc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigDB0CB91370D9B0443C6DFAD7" X-Virus-Scanned: amavisd-new at noacks.org Cc: Mike Jakubik , stable@freebsd.org Subject: Re: CPUTYPE for Sempron X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: noackjr@alumni.rice.edu List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Jun 2005 19:24:30 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigDB0CB91370D9B0443C6DFAD7 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable On 06/13/05 14:03, K=F6vesd=E1n G=E1bor wrote: > use CFLAGS=3D-march=3Datlhlon-xp. CPUTYPE overrides CFLAGS, so it doesn= 't=20 > provide You such sophisticated optimizations. > If You plan to make buildworld, use: > CFLAGS=3D-O2 -pipe -march=3Dathlon-xp > Anyway, if You just use ports collection, and don't make buildworld > CFLAGS=3D-O3 -pipe -march=3Dathlon-xp > is also reliable, but it might make some trouble when making buildworld= =2E CPUTYPE doesn't override CFLAGS. Read /usr/share/mk/bsd.cpu.mk.=20 Specifically, the second to last line: CFLAGS +=3D ${_CPUCFLAGS} Earlier in the file you see: _CPUCFLAGS =3D -march=3D${CPUTYPE} So in effect what is happening: CFLAGS +=3D -march=3Dathlon-xp I use the following with no issues on 5.x and CURRENT: CPUTYPE ?=3D athlon-xp CFLAGS =3D -O2 -fno-strict-aliasing -pipe COPTFLAGS =3D -O2 -fno-strict-aliasing -pipe > Mike Jakubik wrote: >> Which CPUTYPE should be used for the AMD Sempron CPU? I'm assuming=20 >> this is >> similiar to an athlon-xp. Perhaps an alias or a new entry should be >> created for this CPU? >> >> --- >> CPU: AMD Sempron(tm) Processor 3000+ (1799.81-MHz 686-class CPU) >> Origin =3D "AuthenticAMD" Id =3D 0x10fc0 Stepping =3D 0 >> Features=3D0x78bfbff=20 >> >> AMD Features=3D0xc0500000 --=20 Jonathan Noack | noackjr@alumni.rice.edu | OpenPGP: 0x991D8195 --------------enigDB0CB91370D9B0443C6DFAD7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCrd1pUFz01pkdgZURArxEAJsEbj5JC6H3OoQd+V+4btISy2xujgCfclFu qjYJDU8HnA7hhr9i1vBhICw= =0fFD -----END PGP SIGNATURE----- --------------enigDB0CB91370D9B0443C6DFAD7--