At -O1 and up we need a huge amount of memory and compile-time to compile the testcase. My x86_64 box is at 3GB ram and > 30min now, still building.
-- Summary: Insane amount of compile-time / memory needed at -O1 and up Product: gcc Version: 4.1.0 Status: UNCONFIRMED Keywords: memory-hog, compile-time-hog Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: rguenth at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26830