]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* struct-equiv.c (find_dying_inputs): Fix off-by-one bug.
authorUlrich Weigand <uweigand@de.ibm.com>
Thu, 12 Jan 2006 17:22:22 +0000 (17:22 +0000)
committerUlrich Weigand <uweigand@gcc.gnu.org>
Thu, 12 Jan 2006 17:22:22 +0000 (17:22 +0000)
From-SVN: r109645

gcc/ChangeLog
gcc/struct-equiv.c

index d06fcf02b8ac693dda4a5005fb96d69ff2dd03f1..d6af785fbd47b4189e9563184363f7e2a4a746bf 100644 (file)
@@ -1,3 +1,7 @@
+2006-01-12  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * struct-equiv.c (find_dying_inputs): Fix off-by-one bug.
+
 2006-01-11  Andrew Pinski  <pinskia@physics.uc.edu>
 
        * config/i386/darwin.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
index e38ae73311361a8b9aab1eb3b72559add4a74125..1f11ff8ed39a3ef0102001efda2f3e590f60d3cd 100644 (file)
@@ -1280,7 +1280,7 @@ find_dying_inputs (struct equiv_info *info)
       int nregs = (regno >= FIRST_PSEUDO_REGISTER
                   ? 1 : hard_regno_nregs[regno][GET_MODE (x)]);
 
-      for (info->local_rvalue[i] = false; nregs >= 0; regno++, --nregs)
+      for (info->local_rvalue[i] = false; nregs > 0; regno++, --nregs)
        if (REGNO_REG_SET_P (info->x_local_live, regno))
          {
            info->dying_inputs++;