From d5a1d1c7584b6b0adb0ba959b61e54693b96bd3e Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sat, 8 Jun 1996 13:43:59 -0400 Subject: [PATCH] (find_equiv_reg): Set need_stable_sp if GOAL is the stack pointer. From-SVN: r12242 --- gcc/reload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/reload.c b/gcc/reload.c index 72887930604..0d35f55ce1b 100644 --- a/gcc/reload.c +++ b/gcc/reload.c @@ -5554,7 +5554,7 @@ find_equiv_reg (goal, insn, class, other, reload_reg_p, goalreg, mode) /* If we propose to get the value from the stack pointer or if GOAL is a MEM based on the stack pointer, we need a stable SP. */ - if (valueno == STACK_POINTER_REGNUM + if (valueno == STACK_POINTER_REGNUM || regno == STACK_POINTER_REGNUM || (goal_mem && reg_overlap_mentioned_for_reload_p (stack_pointer_rtx, goal))) need_stable_sp = 1; -- 2.30.2