Gentoo Archives: gentoo-user

From: Walter Dnes <waltdnes@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] world rebuild with gcc-6.3.0 - not completely there yet
Date: Mon, 15 May 2017 02:03:29
Message-Id: 20170515020316.GB8579@waltdnes.org
In Reply to: Re: [gentoo-user] world rebuild with gcc-6.3.0 - not completely there yet by Helmut Jarausch
1 On Sun, May 14, 2017 at 11:05:14AM +0200, Helmut Jarausch wrote
2 > Many thanks for your hints!
3 >
4 > On 05/14/2017 07:13:05 AM, Walter Dnes wrote:
5 > > Out of sheer curiousity, what
6 > > does gcc report as your native cpu when you run...
7 > >
8 > > gcc -c -Q -march=native --help=target | grep march=
9 >
10 > -march=amdfam10
11
12 According to the GCC website...
13 https://gcc.gnu.org/onlinedocs/gcc-6.3.0/gcc/x86-Options.html#x86-Options
14 GCC 6.3.0 "-march=amdfam10" ("-march=native" on your machine) supports
15 MMX, SSE, SSE2, SSE3, SSE4A, 3DNow!, enhanced 3DNow!, and ABM. GCC
16 builds binaries to use these instructions where appropriate.
17
18 When building for the machine that's doing the build, I always use
19 "-march=native". This gets the full available speedup, without having
20 to figure out what the exact cpu family is.
21
22 --
23 Walter Dnes <waltdnes@××××××××.org>
24 I don't run "desktop environments"; I run useful applications