attached testcase eats a 1GB of ram, swap and it's killed by OOM. it works fine on 4.1.2/{all} and 4.2.0/{i386,ppc}. so, it looks like a 4.2/x86-64 target regression.
-- Summary: memory hog. Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pluto at agmk dot net GCC target triplet: x86_64-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30052