When compiling the attached program with the command line gcc -v -save-temps -O2 bug.i gcc uses all available memory.
gcc -v gives me Using built-in specs. Target: x86_64-unknown-linux-gnu Configured with: ../gcc/configure CC=/usr/bin/gcc-4.3.4 --prefix=/home/jdemeyer/local --enable-checking=release Thread model: posix gcc version 4.5.0 20090904 (experimental) (GCC) -- Summary: gcc uses all available memory Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jdemeyer at cage dot ugent dot be GCC build triplet: x86_64-unknown-linux-gnu GCC host triplet: x86_64-unknown-linux-gnu GCC target triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41263