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 1GwNQc-0002q0-Am for garchives@archives.gentoo.org; Mon, 18 Dec 2006 18:41:34 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.8) with SMTP id kBIIbK3S022828; Mon, 18 Dec 2006 18:37:20 GMT Received: from um1.unlimitedmail.net (139.Red-80-26-111.staticIP.rima-tde.net [80.26.111.139]) by robin.gentoo.org (8.13.8/8.13.8) with ESMTP id kBIIbJvK004179 for ; Mon, 18 Dec 2006 18:37:19 GMT Received: from ppp.zz ([137.204.208.98]) (authenticated bits=0) by um1.unlimitedmail.net (8.13.7/8.13.4) with ESMTP id kBIIbHN7013279 for ; Mon, 18 Dec 2006 19:37:18 +0100 From: Etaoin Shrdlu To: gentoo-amd64@lists.gentoo.org Subject: Re: [gentoo-amd64] Correct -march in make.conf Date: Mon, 18 Dec 2006 20:05:29 +0100 User-Agent: KMail/1.9.5 References: <4586D8C0.4080408@ercbroadband.org> In-Reply-To: <4586D8C0.4080408@ercbroadband.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-amd64@gentoo.org Reply-to: gentoo-amd64@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200612182005.29865.shrdlu@unlimitedmail.org> X-UnlimitedMail-MailScanner-From: shrdlu@unlimitedmail.org X-Archives-Salt: 7c522d52-afc9-449b-9de9-d47018a7f951 X-Archives-Hash: 986bdce9329dca58dd7027c9c867454b On Monday 18 December 2006 19:06, Mark Haney wrote: > I've been using -mcpu since I started using gentoo, but have been > noticing the '-mcpu is deprecated etc.' messages when updating. Being > the paranoid I am, I'd like to get rid of those, but haven't found the > correct option to use for -march. Is it the same as -mcpu? Or what's > the correct one for amd64? You can use -mtune in place of -mcpu. If you don't need binary compatibility with other CPUs, you should use -march. Speaking of which...that really depends. "amd64" means a lot of CPUs, including AMD and Intel models. What's your CPU? According to [1], you should set -march=k8 for AMD CPUs (non-EM64T) and -march=nocona for Intel ones (EM64T). But, for AMD athlon64 X2, you can also use -march=athlon64. [2] is a good reference, IMHO. If you want to optimize further, the forums have lots of threads devoted to CFLAGS optimization. [1] http://www.gentoo.org/doc/en/gentoo-amd64-faq.xml#cflags [2] http://gentoo-wiki.com/Safe_Cflags -- gentoo-amd64@gentoo.org mailing list