http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45712
Richard Guenther rguenth at gcc dot gnu.org changed:
What|Removed |Added
Status|NEW |RESOLVED
--- Comment #6 from hubicka at gcc dot gnu dot org 2010-09-21 10:29 ---
this should be fixed by patch introducing static_object_in_other_unit_p.
However it seems bit strange that we can get into VAR_DECL not in a varpool by
folding. I know this is possible for vtables and type infos,
--- Comment #4 from meissner at gcc dot gnu dot org 2010-09-20 21:26
---
FWIW, updating the source to subversion id 164441 seems to mask the failure on
the powerpc, but the x86 still segfaults. I suspect that the bug is not
actually fixed, but just doesn't show up at the current time
--- Comment #5 from hjl dot tools at gmail dot com 2010-09-21 00:00 ---
It is caused by revision 163808:
http://gcc.gnu.org/ml/gcc-cvs/2010-09/msg00099.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45712
--- Comment #3 from rguenth at gcc dot gnu dot org 2010-09-18 09:28 ---
It should never return NULL for global vars.
--
rguenth at gcc dot gnu dot org changed:
What|Removed |Added