From: Jeff Law Date: Wed, 30 Jun 1993 17:43:20 +0000 (-0600) Subject: pa.c (output_function_prologue): Emit SAVE_SP flag if a frame pointer is needed. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=da3c33362d11f10b2fbb36b89337936cb66de439;p=gcc.git pa.c (output_function_prologue): Emit SAVE_SP flag if a frame pointer is needed. * pa.c (output_function_prologue): Emit SAVE_SP flag if a frame pointer is needed. From-SVN: r4804 --- diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index 142e97f84b7..05cd99c31b8 100644 --- a/gcc/config/pa/pa.c +++ b/gcc/config/pa/pa.c @@ -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. */