Gentoo Archives: gentoo-user

From: Richard Fish <bigfish@××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Gcc 4.1 compile speed
Date: Thu, 07 Sep 2006 04:31:01
Message-Id: 7573e9640609062124u100d20b4x33127cee8b2d986c@mail.gmail.com
In Reply to: [gentoo-user] Gcc 4.1 compile speed by Mark Kirkwood
1 On 9/6/06, Mark Kirkwood <markir@××××××××××××.nz> wrote:
2 > After upgrading to gcc to 4.1, I notice that pure c projects take
3 > significantly longer to compile than under 3.4 (e.g. Postgres 8.1.4 - 7
4 > minutes vs 5 minutes for -O2 optimization)
5
6 To paraphrase from the amd64 list, It makes faster binaries slower.
7 But yeah, known issue:
8
9 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21456
10 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23955
11 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18687
12
13 Bottom line is that the optimizer makes many more passes over the code
14 now, so produces better optimizations, but it takes longer. We can
15 only hope that 4.2 begins to speed things up again.
16
17 BTW, -O3 is meant to take a long time to compile...so it is probably
18 more useful to do your C++ comparisons at -O2.
19
20 -Richard
21 --
22 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Gcc 4.1 compile speed Mark Kirkwood <markir@××××××××××××.nz>