https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65779

--- Comment #4 from Alan Modra <amodra at gmail dot com> ---
Created attachment 35342
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35342&action=edit
prototype patch

This seems to cure the testcase.  I haven't bootstrapped it, and it probably
isn't ideal since I haven't poked at debug insns a lot..
Still, it points out where the problem is, in move_insn_for_shrink_wrap.

--- Comment #5 from Alan Modra <amodra at gmail dot com> ---
Hmm, the bootstrap didn't get very far.  Seems I need a
df_insn_rescan_debug_internal (dinsn);
after setting INSN_VAR_LOCATION_LOC.  Maybe the debug insn in this case can be
deleted?

Reply via email to