https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65779
--- Comment #16 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Tue Jan 19 13:21:04 2016 New Revision: 232558 URL: https://gcc.gnu.org/viewcvs?rev=232558&root=gcc&view=rev Log: PR debug/65779 * shrink-wrap.c: Include valtrack.h. (move_insn_for_shrink_wrap): Add DEBUG argument. If MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs in between insn and where it will be moved to. Call dead_debug_insert_temp. (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init first and dead_debug_local_finish at the end. For uses and defs bitmap, handle all regs in between REGNO and END_REGNO, not just the first one. * gcc.dg/pr65779.c: New test. Added: trunk/gcc/testsuite/gcc.dg/pr65779.c Modified: trunk/gcc/ChangeLog trunk/gcc/shrink-wrap.c trunk/gcc/testsuite/ChangeLog