Compiling Mozilla, IPA reference OOMs for me after allocating about 9GB of bitmaps. It is because the counters inserted to every function by profile-generate are especially bad for the datastructure used by IPA-reference. As a temporary workaround, I will probably disable IPA reference with profiling is active.
Path posted http://gcc.gnu.org/ml/gcc-patches/2011-01/msg00508.html
Author: hubicka Date: Wed Jan 12 10:39:39 2011 New Revision: 168700 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=168700 Log: PR tree-optimization/47233 * opts.c (common_handle_option): Disable ipa-reference with profile feedback. Modified: trunk/gcc/ChangeLog trunk/gcc/opts.c
Workaround comitted, unasigning and removing from list of Mozilla dependencies.