OSDN Git Service

Patch from David Mosberger to fix -fno-omit-frame-pointer bug.
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 Jan 2005 03:44:10 +0000 (03:44 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 Jan 2005 03:44:10 +0000 (03:44 +0000)
PR target/18987
* config/ia64/ia64.c (process_set): For alloc insn, only call
process_epilogue is !frame_pointer_needed.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@93174 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/ia64/ia64.c

index c4e50cb..1db3edd 100644 (file)
@@ -1,3 +1,9 @@
+2005-01-10  David Mosberger  <davidm@hpl.hp.com>
+
+       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  <roger@eyesopen.com>
 
        PR c++/19355
index 98ce550..5e8c5cd 100644 (file)
@@ -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");