http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50317
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-11-28 14:36:53 UTC --- Created attachment 25936 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25936 gcc47-pr50317-3.patch Alternative to gcc47-pr50317-3.patch (everything untested), which adds some hacks so that the DCE hunk works on this testcase. I'm a little bit worried that it could create too many debug bind stmts which might turn out to be useless (as not all of references to the var will be removed).