[Bug middle-end/46823] [4.6 Regression] ICE: edge points to wrong declaration
jamborm at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Dec 9 13:28:00 GMT 2010
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46823
--- Comment #5 from Martin Jambor <jamborm at gcc dot gnu.org> 2010-12-09 13:28:32 UTC ---
I could not reproduce the ICE with the ouin.cc source but I did with
a.cc.
So far I have no clue whatsoever how IPA-SRA comes into this (but it
is true that switching it off makes the ICE go away) or how the
MEM_REF patch makes anything any different (the IPA-SRA modification
that seems to trigger this only removes a parameter, it does not build
any memory references).
Nevertheless, by adding verify_cgraph() calls all over the place, I
figured out that the verification becomes unhappy after the following
call in expand_call_inline.
fn = cgraph_node (fn)->decl;
cgraph_node creates a cgraph node if it does not find one so I guess
that is a part of the problem.
More information about the Gcc-bugs
mailing list