summaryrefslogtreecommitdiff
path: root/gcc/struct-equiv.c
diff options
context:
space:
mode:
authoruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>2006-01-12 17:22:22 +0000
committeruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>2006-01-12 17:22:22 +0000
commitafe09cb6c68a04f501121068f1345254bdb8d0b0 (patch)
treee4fc22f2dac130b68a04e2fd1c8f3313dfa6f80a /gcc/struct-equiv.c
parent1e65641d3236cf3e91bf14765439695e3d699132 (diff)
downloadgcc-afe09cb6c68a04f501121068f1345254bdb8d0b0.tar.gz
* struct-equiv.c (find_dying_inputs): Fix off-by-one bug.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109645 138bc75d-0d04-0410-961f-82ee72b054a4
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 e38ae733113..1f11ff8ed39 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++;