summaryrefslogtreecommitdiff
path: root/gcc/reload.c
diff options
context:
space:
mode:
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>1998-07-09 10:06:18 +0000
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>1998-07-09 10:06:18 +0000
commita7657823e21593669a99fb64310c4af28de306ea (patch)
tree3719354d34552cb42706792ce211dd8c60c93359 /gcc/reload.c
parentfe4dfedc27d1bf4540bc215a2308ca65a6af3122 (diff)
downloadgcc-a7657823e21593669a99fb64310c4af28de306ea.tar.gz
* reload.c (find_equiv_reg): If need_stable_sp is set,
check if stack pointer is changed directly in a PARALLEL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@21033 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/reload.c')
-rw-r--r--gcc/reload.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/reload.c b/gcc/reload.c
index 0b76bb709ba..1461cad5f83 100644
--- a/gcc/reload.c
+++ b/gcc/reload.c
@@ -6272,6 +6272,8 @@ find_equiv_reg (goal, insn, class, other, reload_reg_p, goalreg, mode)
&& reg_overlap_mentioned_for_reload_p (dest,
goal))
return 0;
+ if (xregno == STACK_POINTER_REGNUM && need_stable_sp)
+ return 0;
}
else if (goal_mem && GET_CODE (dest) == MEM
&& ! push_operand (dest, GET_MODE (dest)))