------- Comment #2 from hubicka at ucw dot cz 2009-10-22 00:29 ------- Subject: Re: New: ICE with -flto -fwhole-program
The problem here is that ipa-pure-const skips analysis of overwrittable nodes. But with LTO and whole program the nodes might look overwrittable at compile time, but at link time we want to use their analysis. Additionally we assume that function without bodies are opaque that is not true too, so in fact we are limitting the pass to single file only. Same problem is with the other ipa-* passes, I am testing patch for this pass and looking into others. Honza -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41730