summaryrefslogtreecommitdiff
path: root/gcc/ira-lives.c
diff options
context:
space:
mode:
authorjiez <jiez@138bc75d-0d04-0410-961f-82ee72b054a4>2010-03-09 01:30:00 +0000
committerjiez <jiez@138bc75d-0d04-0410-961f-82ee72b054a4>2010-03-09 01:30:00 +0000
commite91a9c3f45deac186f0b137b2679eb0efd8add86 (patch)
tree3d15ed519ae9070a7d3e141f8cb494cba4897bb2 /gcc/ira-lives.c
parent11010e64ffb2e2614b04feb0da42321ec74eee9f (diff)
downloadgcc-e91a9c3f45deac186f0b137b2679eb0efd8add86.tar.gz
* ira-lives.c (check_and_make_def_use_conflict): Don't fall
out array boundary. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157299 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ira-lives.c')
-rw-r--r--gcc/ira-lives.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ira-lives.c b/gcc/ira-lives.c
index 7f2769f81e0..ac69e229b06 100644
--- a/gcc/ira-lives.c
+++ b/gcc/ira-lives.c
@@ -456,7 +456,7 @@ check_and_make_def_use_conflict (rtx dreg, enum reg_class def_cl,
different. (Indeed, if the constraints for the two
operands are the same for all alternatives, there's no
point marking them as commutative.) */
- if (use < recog_data.n_operands + 1
+ if (use < recog_data.n_operands - 1
&& recog_data.constraints[use][0] == '%')
advance_p
= make_pseudo_conflict (recog_data.operand[use + 1],