aboutsummaryrefslogtreecommitdiff
path: root/gcc/ira-lives.c
diff options
context:
space:
mode:
authorJie Zhang <jie@codesourcery.com>2010-03-09 01:30:00 +0000
committerJie Zhang <jiez@gcc.gnu.org>2010-03-09 01:30:00 +0000
commitdc344e877ab5ab11883350111f5d5e8cdbd732a2 (patch)
tree3d15ed519ae9070a7d3e141f8cb494cba4897bb2 /gcc/ira-lives.c
parent49d78e291bd9f965ca9861fc831810de553f9159 (diff)
downloadgcc-dc344e877ab5ab11883350111f5d5e8cdbd732a2.zip
gcc-dc344e877ab5ab11883350111f5d5e8cdbd732a2.tar.gz
gcc-dc344e877ab5ab11883350111f5d5e8cdbd732a2.tar.bz2
ira-lives.c (check_and_make_def_use_conflict): Don't fall out array boundary.
* ira-lives.c (check_and_make_def_use_conflict): Don't fall out array boundary. From-SVN: r157299
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 7f2769f..ac69e22 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],