http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49351
--- Comment #4 from Mike Jarvis <michael at jarvis dot net> 2011-06-10 14:02:45 UTC --- That's a bit odd. The final function in the .ii file consists of two function calls. If I delete either one of these, the compile succeeds and only uses about 1100M (RSIZE in top). So I would have thought that a successful compilation with both functions there would take around 2GB, not 4. However, on my machine, the compiler bombs out before even getting to 1GB memory usage. (Around 785M, as I mentioned.) But either way, my machine has 8GB physical memory, so that should be plenty even if it wants to use 4GB.