This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/10039: [macosx] gcc hangs at a c++-Constructor with switch "-Os"
- From: Geoffrey Keating <geoffk at apple dot com>
- To: dixl at medimach dot de, gcc-gnats at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org
- Date: Wed, 26 Mar 2003 14:25:30 -0800
- Subject: Re: c++/10039: [macosx] gcc hangs at a c++-Constructor with switch "-Os"
Dix says this was filed as Apple Radar 3042899, quite some time ago.
In summary:
The compiler is not really hanging, just taking a very long time
(hours). The problem is specific to -Os. A workaround for released
compilers is to add -fno-gcse, or use -O2 instead of -Os.
-fno-schedule-insns will also help.
It looks like later compiler releases (3.3, 3.4, the next Apple
compiler release) will have the performance bottlenecks improved, down
to sane numbers (like 10 minutes, with no workarounds, or 1 minute with
-fno-schedule-insns in 3.3, and better in 3.4).
--
Geoff Keating <geoffk at apple dot com>