This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/41730] ICE with -flto -fwhole-program
- From: "hubicka at ucw dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Oct 2009 00:29:06 -0000
- Subject: [Bug middle-end/41730] ICE with -flto -fwhole-program
- References: <bug-41730-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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