Gentoo Archives: gentoo-user

From: Helmut Jarausch <jarausch@××××××.be>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] world rebuild with gcc-6.3.0 - not completely there yet
Date: Sun, 14 May 2017 09:05:34
Message-Id: EZ2EATSW.NXUCTUVS.MNWF7M3N@3CY7MAKL.IEXXMI2T.655IT7QP
In Reply to: Re: [gentoo-user] world rebuild with gcc-6.3.0 - not completely there yet by Walter Dnes
1 Many thanks for your hints!
2
3 On 05/14/2017 07:13:05 AM, Walter Dnes wrote:
4 > Why aren't you running "-march=native"? You're probably missing
5 > quite
6 > a few features of your cpu. BTW, "-march=native" implies
7 > "-mtune=native"
8 > and "-msse3" (if the cpu supports it). Out of sheer curiousity, what
9 > does gcc report as your native cpu when you run...
10 >
11 > gcc -c -Q -march=native --help=target | grep march=
12
13 -march=amdfam10
14
15 >
16 > > and quite a e few
17 > > CFLAGS="-O3 -mtune=native -pipe -msse -msse2 -msse3 -msse4a -m3dnow"
18 > > (for my aged AMD64 Phenom II machine)
19 > >
20 > > in /etc/portage/env/...
21 >
22 > "-O3"... yikes! Not really recommended. If you want speedup, use
23 > "-march=native" instead.
24
25 I didn't have any problems with that. I only use these setting non
26 compute intensive packages which
27 are not system critical.
28 >
29 > In make.conf, I have...
30 >
31 > CFLAGS="-O2 -march=native -mfpmath=sse -fomit-frame-pointer -pipe
32 > -fno-unwind-tables -fno-asynchronous-unwind-tables"
33 >
34 > The 2 "unwind_tables" flags reduce code bloat. See
35 > http://comments.gmane.org/gmane.linux.busybox/36695 for details. The
36 > guys at busybox do what they can to reduce code bloat. Knocking 15%
37 > off
38 > the size of an executable or library helps. This results in faster
39 > loading at startup (less to load), and less stuff in ram cuts down on
40 > swapping.
41
42 Many thanks, again
43 Helmut

Replies

Subject Author
Re: [gentoo-user] world rebuild with gcc-6.3.0 - not completely there yet Walter Dnes <waltdnes@××××××××.org>