http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45375
--- Comment #55 from Jan Hubicka <hubicka at ucw dot cz> 2011-03-09 19:17:26 UTC --- > Just a warning: Building a -fprofile-generate libxul uses > ~13GB of memory. (I have 8GB on my build-system and lto1 > got killed several times by the OOM killer, until I added > enough swap space.) > The build process still fails later on as described in Comment 28. You can build -fprofile-generate without -flto and use -flto only for final build. It produce same results and save _alot_ of memory ;) Honza