re PR target/32338 (Error: .prologue within prologue)
[gcc.git] / gcc / config / ia64 / ia64.c
index 46f75c5a205c73fe00271f4de6da9c6851d3ce5e..6a6a9e62f0c99013d787363bd0a14c189fc2c60a 100644 (file)
@@ -3437,7 +3437,9 @@ ia64_expand_epilogue (int sibcall_p)
 
   finish_spill_pointers ();
 
-  if (current_frame_info.total_size || cfun->machine->ia64_eh_epilogue_sp)
+  if (current_frame_info.total_size
+      || cfun->machine->ia64_eh_epilogue_sp
+      || frame_pointer_needed)
     {
       /* ??? At this point we must generate a magic insn that appears to
          modify the spill iterators, the stack pointer, and the frame