From: David Mosberger Date: Tue, 11 Jan 2005 03:44:10 +0000 (+0000) Subject: re PR target/18987 ([ia64] Extra '.restore sp' in tail call) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b1eae416343b059b5be8adb2c8ff4aac8ebec7c4;p=gcc.git re PR target/18987 ([ia64] Extra '.restore sp' in tail call) Patch from David Mosberger to fix -fno-omit-frame-pointer bug. PR target/18987 * config/ia64/ia64.c (process_set): For alloc insn, only call process_epilogue is !frame_pointer_needed. From-SVN: r93174 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c4e50cbee37..1db3edd0895 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2005-01-10 David Mosberger + + PR target/18987 + * config/ia64/ia64.c (process_set): For alloc insn, only call + process_epilogue is !frame_pointer_needed. + 2005-01-10 Roger Sayle PR c++/19355 diff --git a/gcc/config/ia64/ia64.c b/gcc/config/ia64/ia64.c index 98ce550dcc2..5e8c5cd9970 100644 --- a/gcc/config/ia64/ia64.c +++ b/gcc/config/ia64/ia64.c @@ -7761,7 +7761,7 @@ process_set (FILE *asm_out_file, rtx pat) followed by a new prologue. If the procedure doesn't have a memory-stack frame, we'll issue a dummy ".restore sp" now. */ - if (current_frame_info.total_size == 0) + if (current_frame_info.total_size == 0 && !frame_pointer_needed) /* if haven't done process_epilogue() yet, do it now */ process_epilogue (); fprintf (asm_out_file, "\t.prologue\n");