[Bug tree-optimization/46879] [4.6 Regression] ICE: in separate_decls_in_region_debug_bind, at tree-parloops.c:778 with -flto -ftree-parallelize-loops -gdwarf-3
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Dec 10 15:32:00 GMT 2010
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46879
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-12-10 15:32:40 UTC ---
(In reply to comment #2)
> Hm, well. Then the debug machinery has to deal with type mismatches I guess.
Well, all the debug machinery cares is that the var has the original, declared
type.
> But I wonder why we have debug-stmts for global variables anyway? I thought
> they are only used for registers.
It is not a global variable, it is a VAR_DECL with DECL_ABSTRACT_ORIGIN
PARM_DECL in bar, i.e. optimized away parameter/automatic variable. It is a
non-localized var in main, because it is never referenced there, except for
GIMPLE_DEBUG.
More information about the Gcc-bugs
mailing list