the source made available as http://www.pci.unizh.ch/vandevondele/tmp/CP2K_gcc_2007_06.tgz
gfortran -O1 -fprofile-generate all.f90 fails with f951: out of memory allocating 90000 bytes after a total of 1076375552 bytes even though the machine has 64Gb of ram, and according to top f951 uses only about 4Gb. This problem seems similar to PR 32439 (out of memory for -O1 -fbounds-check) -- Summary: out of memory using -fprofile-generate Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jv244 at cam dot ac dot uk http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32514