* struct-equiv.c (find_dying_inputs): Fix off-by-one bug.

From-SVN: r109645
This commit is contained in:
Ulrich Weigand 2006-01-12 17:22:22 +00:00 committed by Ulrich Weigand
parent 6e97696545
commit 4cd5f6193d
2 changed files with 5 additions and 1 deletions

View 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.

View 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++;