Patchwork Fix inline_merge_summary ICE during kernel build

login
register
mail settings
Submitter Jan Hubicka
Date May 12, 2011, 11:31 a.m.
Message ID <20110512113146.GB26074@kam.mff.cuni.cz>
Download mbox | patch
Permalink /patch/95286/
State New
Headers show

Comments

Jan Hubicka - May 12, 2011, 11:31 a.m.
Hi,
the problem is that Andi's test build is with -O0 and we should not allocate
ipa-prop datastructures then. We do so via duplication hook by accident since
do_whole_program_analysis for some illogical reason calls
ipa_register_cgraph_hooks.

Comitted as obvoius.
Honza
	PR lto/48952
	* lto.c (do_whole_program_analysis): Do not register cgraph hooks.

Patch

Index: lto/lto.c
===================================================================
--- lto/lto.c	(revision 173666)
+++ lto/lto.c	(working copy)
@@ -2511,7 +2511,6 @@  do_whole_program_analysis (void)
       dump_varpool (cgraph_dump_file);
     }
   bitmap_obstack_initialize (NULL);
-  ipa_register_cgraph_hooks ();
   cgraph_state = CGRAPH_STATE_IPA_SSA;
 
   execute_ipa_pass_list (all_regular_ipa_passes);