From: Richard Henderson Date: Mon, 16 Jul 2001 17:57:11 +0000 (-0700) Subject: regclass.c (init_reg_sets): Use only 32 bits per initializer from int_reg_class_contents. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b85946fc65582c45de99552679502bc289e7393f;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8fea87e4b87..87407cc8023 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-07-16 Richard Henderson + + * regclass.c (init_reg_sets): Use only 32 bits per initializer + from int_reg_class_contents. + 2001-07-16 Richard Henderson * hard-reg-set.h (regs_invalidated_by_call): Declare. diff --git a/gcc/regclass.c b/gcc/regclass.c index e3eca7f35d1..c022b0a6321 100644 --- a/gcc/regclass.c +++ b/gcc/regclass.c @@ -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); }