diff options
author | Richard Henderson <rth@redhat.com> | 2001-07-16 10:57:11 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2001-07-16 10:57:11 -0700 |
commit | b85946fc65582c45de99552679502bc289e7393f (patch) | |
tree | 70825fb97e896ad73bb6f4874f5b2464a9e24f6f /gcc | |
parent | 4e2db58460e396ff0a66e3c87f94665c2a7c1ffc (diff) | |
download | gcc-b85946fc65582c45de99552679502bc289e7393f.zip gcc-b85946fc65582c45de99552679502bc289e7393f.tar.gz gcc-b85946fc65582c45de99552679502bc289e7393f.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/regclass.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8fea87e..87407cc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 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. * regclass.c (regs_invalidated_by_call): Move from cse.c. (init_reg_sets_1): Move initialization from cse_main. diff --git a/gcc/regclass.c b/gcc/regclass.c index e3eca7f..c022b0a 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); } |