In 4.2 with -O2 we use 1.5GB compiling the testcase while with 4.1 we only needed 360MB. Using -fno-tree-pre fixes the memory regression.
Some recent 4.3 ICEs for me on the testcase (you need -O2 -fpermissive) with /usr/include/boost/regex/v4/basic_regex_creator.hpp:515: internal compiler error: in expand_or_defer_fn, at cp/semantics.c:3220 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. so I have no way to verify if the problem persists in 4.3 at the moment. -- Summary: [4.2 Regression] PRE goes crazy on YQPkgTechnicalDetailsView.cpp Product: gcc Version: 4.2.1 Status: UNCONFIRMED Keywords: memory-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=32891