http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46931
--- Comment #6 from Alexandre Oliva <aoliva at gcc dot gnu.org> 2010-12-17 06:23:19 UTC --- Created attachment 22793 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22793 Patch I'm testing that fixes the bug Instead of just dropping the debug info on the floor, I figured we could preserve the RHS of the removed DEF, if unchanging, in the debug stmts themselves, if this wouldn't create invalid RHS for the debug bind, or in debug temps bound just before the using debug stmts otherwise.