From: Richard Kenner Date: Sat, 8 Jun 1996 17:43:59 +0000 (-0400) Subject: (find_equiv_reg): Set need_stable_sp if GOAL is the stack pointer. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d5a1d1c7584b6b0adb0ba959b61e54693b96bd3e;p=gcc.git (find_equiv_reg): Set need_stable_sp if GOAL is the stack pointer. From-SVN: r12242 --- 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;