From da3c33362d11f10b2fbb36b89337936cb66de439 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Wed, 30 Jun 1993 11:43:20 -0600 Subject: [PATCH] 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 --- gcc/config/pa/pa.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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. */ -- 2.30.2