Commit 965b2557 by Richard Henderson Committed by Richard Henderson

dwarf2cfi: Flush queued saves at the end of the prologue.

There's little point at holding onto these saves indefinitely.

PR bootstrap/49680
        * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
        end of the prologue.

From-SVN: r176066
parent 830f11fe
...@@ -4,6 +4,10 @@ ...@@ -4,6 +4,10 @@
* dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
any tablejump vector. any tablejump vector.
PR bootstrap/49680
* dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
end of the prologue.
2011-07-08 Jakub Jelinek <jakub@redhat.com> 2011-07-08 Jakub Jelinek <jakub@redhat.com>
PR target/49621 PR target/49621
......
...@@ -2442,11 +2442,18 @@ create_cfi_notes (void) ...@@ -2442,11 +2442,18 @@ create_cfi_notes (void)
{ {
switch (NOTE_KIND (insn)) switch (NOTE_KIND (insn))
{ {
case NOTE_INSN_PROLOGUE_END:
cfi_insn = PREV_INSN (insn);
dwarf2out_flush_queued_reg_saves ();
cfi_insn = NULL;
break;
case NOTE_INSN_EPILOGUE_BEG: case NOTE_INSN_EPILOGUE_BEG:
#if defined(HAVE_epilogue) #if defined(HAVE_epilogue)
dwarf2out_cfi_begin_epilogue (insn); dwarf2out_cfi_begin_epilogue (insn);
#endif #endif
break; break;
case NOTE_INSN_CFA_RESTORE_STATE: case NOTE_INSN_CFA_RESTORE_STATE:
cfi_insn = insn; cfi_insn = insn;
dwarf2out_frame_debug_restore_state (); dwarf2out_frame_debug_restore_state ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment