Bug 29885 - compiling takes very long time during -O3 compile
Summary: compiling takes very long time during -O3 compile
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: middle-end (show other bugs)
Version: 4.3.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: compile-time-hog, memory-hog
Depends on:
Blocks:
 
Reported: 2006-11-18 10:59 UTC by marcus
Modified: 2009-02-22 14:14 UTC (History)
2 users (show)

See Also:
Host: x86_64-unknown-linux-gnu
Target: x86_64-unknown-linux-gnu
Build: x86_64-unknown-linux-gnu
Known to work:
Known to fail:
Last reconfirmed:


Attachments
locale.i (370 bytes, text/plain)
2006-11-18 10:59 UTC, marcus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description marcus 2006-11-18 10:59:20 UTC
Compiling the attached testcase (from WINE) with -O3 takes very long
time and memory (800MB) on current TRUNK (4.3).

removing one or more lines speeds up the compiler massively.

I think this is due to bitmask and ifs.
Comment 1 marcus 2006-11-18 10:59:51 UTC
Created attachment 12640 [details]
locale.i

gcc -O3 -c locale.i
Comment 2 Andrew Pinski 2006-11-18 11:10:27 UTC
This is ok with "4.3.0 20061112" on i686-linux-gnu.
Comment 3 Steven Bosscher 2009-02-22 14:14:27 UTC
I can't reproduce this on i686-cygwin, i686-linux, and x86_64-linux with GCC 4.3.3 and with current trunk (r144372).