Gentoo Archives: gentoo-amd64

From: Duncan <1i5t5.duncan@×××.net>
To: gentoo-amd64@l.g.o
Subject: [gentoo-amd64] Re: GCC 4.5.1 with FLTO and Graphite
Date: Tue, 21 Sep 2010 03:03:18
Message-Id: pan.2010.09.21.02.48.24@cox.net
In Reply to: [gentoo-amd64] GCC 4.5.1 with FLTO and Graphite by Frank Peters
1 Frank Peters posted on Mon, 20 Sep 2010 21:49:33 -0400 as excerpted:
2
3 > After doing my periodical emerge update, I notice that gcc-4.5.1 is now
4 > unmasked and presumably stable. I also notice that a couple of new
5 > options are possible with this new release, namely Graphite and FLTO
6 > optimizations. (Actually, Graphite has been available for a while but I
7 > haven't been following gcc development too closely and only now do I
8 > become aware of it.)
9 >
10 > Does anyone have any comments on the use of Graphite and/or FLTO? Are
11 > they capable of significant improvements on a amd64 system?
12 >
13 > Supposedly FLTO will greatly increase file size and thus could be
14 > selectively enabled for only a few packages. Would building gcc itself
15 > with FLTO be advisable?
16 >
17 > There are reports that many packages fail to build with FLTO:
18 > http://blog.flameeyes.eu/2010/04/25/tinderbox-getting-friendly-with-
19 gcc-4-5
20 >
21 > Since I have encountered little detailed discussion on this topic, I am
22 > posting my question to this list.
23
24 Two excerpts from $equery u gcc
25
26 - - graphite : Add support for the framework for loop optimizations
27 based on a polyhedral intermediate representation
28
29 - - lto : Add support for link-time optimizations (unsupported,
30 use at your own risk).
31
32 So at minimum, you'll need to enable the appropriate USE flags for those
33 features. (As you can see, I haven't.) And, link-time-optimization isn't
34 Gentoo supported at all -- probably partly as a result of flameeyes'
35 testing.
36
37 Personally, I've been waiting for some general level documentation to come
38 across my radar before I get involved with either of these. I've been
39 running 4.5 for some time now, without issue (except that the new version
40 makes use of more instructions for certain later Intel chips, and I had a
41 problem as a result in my 32-bit chroot, trying to build for my atom based
42 netbook, until I dialed back the allowed hardware instructions to what was
43 available on my older amd opteron based build machine, gcc 4.4 apparently
44 didn't use the instructions at all, even if they were marked as
45 available), but that's partly because I've been a bit conservative in
46 enabling the newly available features such as graphite and link-time-
47 optimization.
48
49 --
50 Duncan - List replies preferred. No HTML msgs.
51 "Every nonfree program has a lord, a master --
52 and if you use the program, he is your master." Richard Stallman

Replies

Subject Author
Re: [gentoo-amd64] Re: GCC 4.5.1 with FLTO and Graphite Wil Reichert <wil.reichert@×××××.com>
Re: [gentoo-amd64] Re: GCC 4.5.1 with FLTO and Graphite Frank Peters <frank.peters@×××××××.net>