http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47233
Summary: IPA reference tends to explode in memory use with -fprofile-generate Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassig...@gcc.gnu.org ReportedBy: hubi...@gcc.gnu.org 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.