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
This commit is contained in:
Jie Zhang 2010-03-09 01:30:00 +00:00 committed by Jie Zhang
parent 49d78e291b
commit dc344e877a
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-03-09 Jie Zhang <jie@codesourcery.com>
* ira-lives.c (check_and_make_def_use_conflict): Don't fall
out array boundary.
2010-03-08 Jakub Jelinek <jakub@redhat.com>
* Makefile.in (check_gcc_parallelize): Run dg-torture.exp and

View File

@ -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],