summaryrefslogtreecommitdiffstats
path: root/gcc/flow.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/flow.c')
-rw-r--r--gcc/flow.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/flow.c b/gcc/flow.c
index 22f7f1e4fa6..4eec565781b 100644
--- a/gcc/flow.c
+++ b/gcc/flow.c
@@ -2880,7 +2880,8 @@ mark_used_regs (needed, live, x, final, insn)
if (! EXIT_IGNORE_STACK
|| (! FRAME_POINTER_REQUIRED
&& ! current_function_calls_alloca
- && flag_omit_frame_pointer))
+ && flag_omit_frame_pointer)
+ || current_function_sp_is_unchanging)
#endif
SET_REGNO_REG_SET (live, STACK_POINTER_REGNUM);
OpenPOWER on IntegriCloud