pa.c (output_function_prologue): Emit SAVE_SP flag if a frame pointer is needed.
authorJeff Law <law@gcc.gnu.org>
Wed, 30 Jun 1993 17:43:20 +0000 (11:43 -0600)
committerJeff Law <law@gcc.gnu.org>
Wed, 30 Jun 1993 17:43:20 +0000 (11:43 -0600)
* pa.c (output_function_prologue): Emit SAVE_SP flag if a frame
pointer is needed.

From-SVN: r4804

gcc/config/pa/pa.c

index 142e97f84b7f4f2d62ed46431d945ab5dd5b778c..05cd99c31b803d08a62fd75c9cec357a77c68152 100644 (file)
@@ -1946,10 +1946,14 @@ output_function_prologue (file, size)
      of a function.  */
   fprintf (file, "\t.PROC\n\t.CALLINFO FRAME=%d", actual_fsize);
   if (regs_ever_live[2] || profile_flag)
-    fprintf (file, ",CALLS,SAVE_RP\n");
+    fprintf (file, ",CALLS,SAVE_RP");
   else
-    fprintf (file, ",NO_CALLS\n");
-  fprintf (file, "\t.ENTRY\n");
+    fprintf (file, ",NO_CALLS");
+
+  if (frame_pointer_needed)
+    fprintf (file, ",SAVE_SP");
+
+  fprintf (file, "\n\t.ENTRY\n");
 
   /* Horrid hack.  emit_function_prologue will modify this RTL in
      place to get the expected results.  */