diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3fe43ec3720..4ff9a729579 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Tue May 9 18:54:16 2000 Richard Kenner + + * reload1.c (reload_combine): Fix errors in last change. + 2000-05-09 Zack Weinberg * gcc.c (used_arg): Skip over a semicolon at the end of the diff --git a/gcc/reload1.c b/gcc/reload1.c index 4d657be69ba..446a0c01c20 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -8393,9 +8393,10 @@ reload_combine () for (r = 0; r < FIRST_PSEUDO_REGISTER; r++) if (TEST_HARD_REG_BIT (reg_class_contents[INDEX_REG_CLASS], r)) { - if (! last_index_reg) - last_index_reg = r; - first_index_reg = i; + if (! first_index_reg) + first_index_reg = r; + + last_index_reg = r; } /* If no index register is available, we can quit now. */