regclass.c (init_reg_sets): Use only 32 bits per initializer from int_reg_class_contents.

* regclass.c (init_reg_sets): Use only 32 bits per initializer
        from int_reg_class_contents.

From-SVN: r44054
This commit is contained in:
Richard Henderson 2001-07-16 10:57:11 -07:00 committed by Richard Henderson
parent 4e2db58460
commit b85946fc65
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2001-07-16 Richard Henderson <rth@redhat.com>
* regclass.c (init_reg_sets): Use only 32 bits per initializer
from int_reg_class_contents.
2001-07-16 Richard Henderson <rth@redhat.com>
* hard-reg-set.h (regs_invalidated_by_call): Declare.

View File

@ -275,9 +275,10 @@ init_reg_sets ()
{
CLEAR_HARD_REG_SET (reg_class_contents[i]);
/* Note that we hard-code 32 here, not HOST_BITS_PER_INT. */
for (j = 0; j < FIRST_PSEUDO_REGISTER; j++)
if (int_reg_class_contents[i][j / HOST_BITS_PER_INT]
& ((unsigned) 1 << (j % HOST_BITS_PER_INT)))
if (int_reg_class_contents[i][j / 32]
& ((unsigned) 1 << (j % 32)))
SET_HARD_REG_BIT (reg_class_contents[i], j);
}