Gentoo Archives: gentoo-user

From: Volker Armin Hemmann <volker.armin.hemmann@××××××××××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Which -march and flags for Intel Dual Core (*NOT* Core Duo)?
Date: Sat, 01 Sep 2007 14:32:22
Message-Id: 200709011619.29332.volker.armin.hemmann@tu-clausthal.de
In Reply to: Re: [gentoo-user] Which -march and flags for Intel Dual Core (*NOT* Core Duo)? by Walter Dnes
1 On Samstag, 1. September 2007, Walter Dnes wrote:
2 > On Wed, Aug 29, 2007 at 09:43:35PM -0400, Statux wrote
3 >
4 > > CFLAGS="-march=prescott -O2 -pipe"
5 > > CHOST="i686-pc-linux-gnu"
6 > >
7 > > which is what I use on my 531 Prescott (the pni cpuflag indicates
8 > > Prescott or compatible)
9 >
10 > Thanks. I don't know if I'm reading the gcc docs too literally, but
11 > the commentary on "-mfpmath=sse" indicates that mmx/sse/sse/sse3 flags
12 > must be explicitly stated for "-mfpmath=sse" to take effect on a 32-bit
13 > system (sse is the default on 64-bit systems). So I explicitly included
14 > the flags. I also included -fomit-frame-pointer, resulting in...
15 >
16 > CFLAGS="-O2 -march=prescott -mmmx -msse -msse2 -msse3 -mfpmath=sse
17 > -fomit-frame-pointer -pipe"
18
19 mmx, sse,sse2,sse3 is already set by prescott (if man gcc can be trusted but
20 it should not hurt to set them) but mfpmath can result in subtile breakage.
21 fomit-frame-pointer is ok, O2 too.
22
23 CFLAGS="-O2 -march=prescott -fomit-frame-pointer -pipe" is much safer.
24
25
26
27 --
28 gentoo-user@g.o mailing list