From b85946fc65582c45de99552679502bc289e7393f Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Mon, 16 Jul 2001 10:57:11 -0700 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/regclass.c | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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); } -- 2.30.2