]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ira-lives.c (check_and_make_def_use_conflict): Don't fall out array boundary.
authorJie Zhang <jie@codesourcery.com>
Tue, 9 Mar 2010 01:30:00 +0000 (01:30 +0000)
committerJie Zhang <jiez@gcc.gnu.org>
Tue, 9 Mar 2010 01:30:00 +0000 (01:30 +0000)
* ira-lives.c (check_and_make_def_use_conflict): Don't fall
out array boundary.

From-SVN: r157299

gcc/ChangeLog
gcc/ira-lives.c

index 1e8dc860741a4174d9a77abf17ed746de5f86446..b6001fca5b009e91755bed1312126c1f0273030b 100644 (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
index 7f2769f81e0a7f4619653b381f9e86a975075c26..ac69e229b06c75097d2a1e920c8dc83cc29b4688 100644 (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],