From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1IBxw6-0002QQ-OF for garchives@archives.gentoo.org; Fri, 20 Jul 2007 19:14:47 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l6KJCIs5011580; Fri, 20 Jul 2007 19:12:18 GMT Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.230]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l6KJ1jtl029649 for ; Fri, 20 Jul 2007 19:01:46 GMT Received: by wr-out-0506.google.com with SMTP id 68so728189wri for ; Fri, 20 Jul 2007 12:01:45 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:x-enigmail-version:content-type; b=Xes/kVSaoTxiKIfZNe78Sn4ujSDcQyDrh1jZnVJvV6SJXEI7qJccCEf1uWm0cLGFBP2GT3q8QEth+6mXy5cQc9EJ4MmJE+dTwHXK/V4f4NqYmc3EaAz57YFM7hXG0etN83dG0Vu2TySmU8YYILD//KbTbP4RTPHc2EXDPyBt2/k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:x-enigmail-version:content-type; b=Z133Gk9+I1bcZMj0aFUZTT0wpx5M77X7UtIz8j6WN+4jz4fgr4mJsDWOVX/6Ne3yuh+MiOtsolQj6GMT1GjEbeUNA0t/tqBGEkNPq701Ab+qqBuviM3MGLTs/DvGLAM5ufWhmjTMmuDcw/cwPJpjKeIQumwl5o3YBHu14wHCb/s= Received: by 10.90.98.3 with SMTP id v3mr796088agb.1184958105299; Fri, 20 Jul 2007 12:01:45 -0700 (PDT) Received: from ?68.200.145.252? ( [68.200.145.252]) by mx.google.com with ESMTPS id m30sm982838elf.2007.07.20.12.01.43 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 20 Jul 2007 12:01:44 -0700 (PDT) Message-ID: <46A10697.8010705@gmail.com> Date: Fri, 20 Jul 2007 15:01:43 -0400 From: Kenneth Prugh User-Agent: Thunderbird 2.0.0.4 (X11/20070716) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] gcc 4.2 and Core 2 Duo References: <200707202147.17773@goldspace.net> <46A0FC00.3020000@gmail.com> <200707202047.56288.f.philipp@addcom.de> In-Reply-To: <200707202047.56288.f.philipp@addcom.de> X-Enigmail-Version: 0.95.2 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig0E9EF045BC9095ED4606A15B" X-Archives-Salt: 50a3be5d-da24-443d-95af-8cf883f2d1af X-Archives-Hash: d97a140544df1973d3b94041316d152f This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig0E9EF045BC9095ED4606A15B Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Florian Philipp wrote: > Am Freitag 20 Juli 2007 20:16 schrieb Kenneth Prugh: >> Andrew Gaydenko wrote: >>> I have noticed, the official portage tree has included gcc 4.2. Now f= or >>> Core 2 Duo CPU (amd64 Gentoo arch) I use in make.conf file: >>> >>> CFLAGS=3D"-O2 -march=3Dnocona -pipe" >>> >>> gcc' changelog has this note: >>> >>> -------------------- >>> ... >>> IA-32/x86-64 >>> >>> * -mtune=3Dgeneric can now be used to generate code running well = on >>> common x86 chips. This includes AMD Athlon, AMD Opteron, Intel Pentiu= m-M, >>> Intel Pentium 4 and Intel Core 2. >>> * -mtune=3Dnative and -march=3Dnative will produce code optimized= for the >>> host architecture as detected using the cpuid instruction. >>> ... >>> -------------------- >>> >>> The question is: must I replace '-march=3Dnocona' with '-mtune=3Dnati= ve and >>> -march=3Dnative'? >> I have a Core2 Duo E6600 and use these CFLAGS with GCC 4.2: >> >> CFLAGS=3D"-Os -march=3Dnative -mtune=3Dnative -fomit-frame-pointer -pi= pe -mmmx >> -msse2 -msse3" >> >> Native works fine here. >=20 > I don't think that you need -msse3 -msse2 and -mmmx because -march take= s care=20 > of that (refer to "man gcc", one notable exeption: -march=3Dathlon64 do= es not=20 > pull -msse3 in because not all Athlons support it).=20 > -fomit-frame-pointer is unneccessary on AMD64 (refer to "man gcc", agai= n). Yeah I wasn't exactly positive if it did pull everything in, and specifying specifically can't really hurt at all as long as you know it's supported with your cpu. --=20 Kenneth Prugh - Ken69267 Gentoo AMD64 Arch Tester --------------enig0E9EF045BC9095ED4606A15B 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.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGoQaX0PM4px2/kjgRAn0WAJ9UbcpGJ/cO4NboEkqaWwAnW3oskwCeMi85 WYZn9XGgVURbQldhLUfdYCM= =2FZG -----END PGP SIGNATURE----- --------------enig0E9EF045BC9095ED4606A15B-- -- gentoo-user@gentoo.org mailing list