* dwarf2cfi.c (dwarf2out_frame_debug_cfa_restore): When restoring
INCOMING_RETURN_ADDR_RTX, and it is different from
DWARF_FRAME_RETURN_COLUMN, mark the latter as saved in the former.
===================================================================
@@ -1240,6 +1240,10 @@ dwarf2out_frame_debug_cfa_restore (rtx r
add_cfi_restore (regno);
update_row_reg_save (cur_row, regno, NULL);
+ if (REG_P (INCOMING_RETURN_ADDR_RTX)
+ && regno == dwf_regno (INCOMING_RETURN_ADDR_RTX)
+ && regno != DWARF_FRAME_RETURN_COLUMN)
+ reg_save (DWARF_FRAME_RETURN_COLUMN, regno, 0);
}
/* A subroutine of dwarf2out_frame_debug, process a REG_CFA_WINDOW_SAVE.