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: Sun, 14 May 2017 05:13:39
Message-Id: 20170514051305.GA4872@waltdnes.org
In Reply to: Re: [gentoo-user] world rebuild with gcc-6.3.0 - not completely there yet by Helmut Jarausch
1 On Sat, May 13, 2017 at 10:21:19AM +0200, Helmut Jarausch wrote
2 >
3 > I have switched to gcc-6.3.0 at the end of last year.
4 > I have (re-)compiled all my packages including icewm-1.3.12-r1.
5 > Everything works just fine.
6 >
7 > I did have some segfaults (with gimp) until I recompiled each package
8 > with gcc-6.3.0
9 >
10 > I have
11 > CFLAGS="-mtune=native -O2 -msse3 -pipe -fPIC"
12 >
13 > in /etc/portage/make.conf
14
15 Why aren't you running "-march=native"? You're probably missing quite
16 a few features of your cpu. BTW, "-march=native" implies "-mtune=native"
17 and "-msse3" (if the cpu supports it). Out of sheer curiousity, what
18 does gcc report as your native cpu when you run...
19
20 gcc -c -Q -march=native --help=target | grep march=
21
22 > and quite a e few
23 > CFLAGS="-O3 -mtune=native -pipe -msse -msse2 -msse3 -msse4a -m3dnow"
24 > (for my aged AMD64 Phenom II machine)
25 >
26 > in /etc/portage/env/...
27
28 "-O3"... yikes! Not really recommended. If you want speedup, use
29 "-march=native" instead.
30
31 In make.conf, I have...
32
33 CFLAGS="-O2 -march=native -mfpmath=sse -fomit-frame-pointer -pipe -fno-unwind-tables -fno-asynchronous-unwind-tables"
34
35 The 2 "unwind_tables" flags reduce code bloat. See
36 http://comments.gmane.org/gmane.linux.busybox/36695 for details. The
37 guys at busybox do what they can to reduce code bloat. Knocking 15% 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 --
43 Walter Dnes <waltdnes@××××××××.org>
44 I don't run "desktop environments"; I run useful applications

Replies

Subject Author
Re: [gentoo-user] world rebuild with gcc-6.3.0 - not completely there yet Helmut Jarausch <jarausch@××××××.be>
Re: [gentoo-user] world rebuild with gcc-6.3.0 - not completely there yet Rasmus Thomsen <Rasmus.thomsen@××××××××××.com>