OSDN Git Service

* struct-equiv.c (find_dying_inputs): Fix off-by-one bug.
authoruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 12 Jan 2006 17:22:22 +0000 (17:22 +0000)
committeruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 12 Jan 2006 17:22:22 +0000 (17:22 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109645 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/struct-equiv.c

index d06fcf0..d6af785 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 e38ae73..1f11ff8 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++;