aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/struct-equiv.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d06fcf0..d6af785 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/struct-equiv.c b/gcc/struct-equiv.c
index e38ae73..1f11ff8 100644
--- a/gcc/struct-equiv.c
+++ b/gcc/struct-equiv.c
@@ -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++;