re PR debug/13231 (Bad DWARF2 CFI when there is no frame pointer)

PR debug/13231
        * dwarf2out.c (dwarf2out_stack_adjust): Skip prologue and epilogue
        instructions.

From-SVN: r75884
This commit is contained in:
Richard Henderson 2004-01-14 13:12:02 -08:00 committed by Richard Henderson
parent 1bddbeb409
commit b298f00fbb
2 changed files with 13 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2004-01-14 Richard Henderson <rth@redhat.com>
PR debug/13231
* dwarf2out.c (dwarf2out_stack_adjust): Skip prologue and epilogue
instructions.
2004-01-14 Richard Henderson <rth@redhat.com>
PR c++/12491

View file

@ -1057,6 +1057,13 @@ dwarf2out_stack_adjust (rtx insn)
const char *label;
int i;
/* Don't handle epilogues at all. Certainly it would be wrong to do so
with this function. Proper support would require all frame-related
insns to be marked, and to be able to handle saving state around
epilogues textually in the middle of the function. */
if (prologue_epilogue_contains (insn) || sibcall_epilogue_contains (insn))
return;
if (!flag_asynchronous_unwind_tables && GET_CODE (insn) == CALL_INSN)
{
/* Extract the size of the args from the CALL rtx itself. */