Gentoo Archives: gentoo-user

From: Paul Hartman <paul.hartman+gentoo@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] -march=native is *EXTREMELY* conservative
Date: Sun, 18 Dec 2011 01:17:32
Message-Id: CAEH5T2PLDCByNhShvm4gE8bkkpxjWH3O7v=tpZyADnhHnqSQYQ@mail.gmail.com
In Reply to: [gentoo-user] -march=native is *EXTREMELY* conservative by Walter Dnes
1 On Sat, Dec 17, 2011 at 3:07 PM, Walter Dnes <waltdnes@××××××××.org> wrote:
2 > -march=                               core2
3 > -mmmx                                 [disabled]
4 > -msse                                 [disabled]
5 > -msse2                                [disabled]
6 > -msse3                                [disabled]
7 > -mssse3                               [disabled]
8 >
9 >  It properly identified the cpu as "core2".  But mmx, sse, sse2, sse3
10 > (aka pni), and ssse3 are disabled!!!
11
12 I think you may be misinterpreting that output. It's not telling you
13 that MMX etc. are disabled, it's telling you that the /commandline
14 options/ are disabled. Why?
15
16 From the GCC docs:
17 "core2: Intel Core2 CPU with 64-bit extensions, MMX, SSE, SSE2, SSE3
18 and SSSE3 instruction set support."
19
20 That means those features are implied by -march=core2, adding those
21 commandline switches would be redundant.