aboutsummaryrefslogtreecommitdiff
path: root/gcc/struct-equiv.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2006-01-12 17:22:22 +0000
committerUlrich Weigand <uweigand@gcc.gnu.org>2006-01-12 17:22:22 +0000
commit4cd5f6193db267e7ac990abcc6a04dbaac800bc8 (patch)
treee4fc22f2dac130b68a04e2fd1c8f3313dfa6f80a /gcc/struct-equiv.c
parent6e976965454c79de70cba16d4f51401859eb569c (diff)
downloadgcc-4cd5f6193db267e7ac990abcc6a04dbaac800bc8.zip
gcc-4cd5f6193db267e7ac990abcc6a04dbaac800bc8.tar.gz
gcc-4cd5f6193db267e7ac990abcc6a04dbaac800bc8.tar.bz2
* struct-equiv.c (find_dying_inputs): Fix off-by-one bug.
From-SVN: r109645
Diffstat (limited to 'gcc/struct-equiv.c')
-rw-r--r--gcc/struct-equiv.c2
1 files changed, 1 insertions, 1 deletions
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++;