From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-user+bounces-95588-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1M7DyL-000414-OW
	for garchives@archives.gentoo.org; Thu, 21 May 2009 19:30:34 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 13639E0406;
	Thu, 21 May 2009 19:30:32 +0000 (UTC)
Received: from mail.askja.de (mail.askja.de [83.137.103.136])
	by pigeon.gentoo.org (Postfix) with ESMTP id D9B87E0406
	for <gentoo-user@lists.gentoo.org>; Thu, 21 May 2009 19:30:31 +0000 (UTC)
Received: from static-87-79-89-40.netcologne.de ([87.79.89.40] helo=zone.wonkology.org)
	by mail.askja.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.69)
	(envelope-from <wonko@wonkology.org>)
	id 1M7DyJ-0003Yv-CS
	for gentoo-user@lists.gentoo.org; Thu, 21 May 2009 21:30:31 +0200
Received: from localhost (localhost [127.0.0.1])
  (uid 1000)
  by zone.wonkology.org with local; Thu, 21 May 2009 21:30:24 +0200
  id 000103C2.4A15ABD0.000064A5
From: Alex Schuster <wonko@wonkology.org>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Re: -march=auto
Date: Thu, 21 May 2009 21:30:19 +0200
User-Agent: KMail/1.11.3 (Linux/2.6.28-tuxonice-r3; KDE/4.2.3; i686; ; )
References: <645806.23464.qm@web31603.mail.mud.yahoo.com> <58965d8a0905211141w77f69ba0v573570ebb3b4bee4@mail.gmail.com> <200905212109.01217.wonko@wonkology.org>
In-Reply-To: <200905212109.01217.wonko@wonkology.org>
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Content-Type: Text/Plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200905212130.20136.wonko@wonkology.org>
X-Archives-Salt: c4080a94-1eed-4ad8-b75f-238cb5c33bbf
X-Archives-Hash: 07d676b24710e0f0f6c58e91d4519553

I just wrote:

> > Could also perhaps try -march=auto if you're using a version of GCC
> > that supports it.

Oh, it's -march=native.

> BTW, is there a possibility to let gcc tell what flags it will actually
> use with -march=auto?

Paul Hartman just posted a link to a script that seems to do what I was 
looking for in the "[OT]eee 900a intel atom is what processor family?" 
thread: <http://www.pixelbeat.org/scripts/gcccpuopt>

But it suggests using -march=k8 - isn't that a 64-bit-only thing? I'm not 
compiling for AMD64, I'm still using 32-bit mode. So I have -march=athlon-xp 
in my CFLAGS for my AMD Athlon(tm) Dual Core Processor 4850e CPU.

	Wonko