This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/53426] [4.8 Regression] ICE:create_variable_info_for at ../../gcc-trunk/gcc/tree-ssa-structalias.c:5581
- From: "hubicka at ucw dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 22 May 2012 12:53:43 +0000
- Subject: [Bug tree-optimization/53426] [4.8 Regression] ICE:create_variable_info_for at ../../gcc-trunk/gcc/tree-ssa-structalias.c:5581
- Auto-submitted: auto-generated
- References: <bug-53426-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53426
--- Comment #8 from Jan Hubicka <hubicka at ucw dot cz> 2012-05-22 12:53:43 UTC ---
> But I have a variable that fulfills varpool_all_refs_explicit_p but still
> its DECL_INITIAL contains &X where I have no varpool node for X for. So
> if I constant fold from it I can get an explicit reference to a global
> variable X that has no varpool node assigned. How can that be ok?
We bring the references only for vars that pass const_value_known_p, but from
what you quote it looks like it should pass the check. I am now tracking
memory
corruption in other PR, so i will look into this next.