aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1996-06-08 13:43:59 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1996-06-08 13:43:59 -0400
commitd5a1d1c7584b6b0adb0ba959b61e54693b96bd3e (patch)
treede9845ea77666840ef74426963b10f8b5497a84e /gcc
parent0161e8dace9f35fba0a938a803fc4c55e675dcb9 (diff)
downloadgcc-d5a1d1c7584b6b0adb0ba959b61e54693b96bd3e.zip
gcc-d5a1d1c7584b6b0adb0ba959b61e54693b96bd3e.tar.gz
gcc-d5a1d1c7584b6b0adb0ba959b61e54693b96bd3e.tar.bz2
(find_equiv_reg): Set need_stable_sp if GOAL is the stack pointer.
From-SVN: r12242
Diffstat (limited to 'gcc')
-rw-r--r--gcc/reload.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/reload.c b/gcc/reload.c
index 7288793..0d35f55 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;