regclass.c (init_reg_sets): Use only 32 bits per initializer from int_reg_class_contents.
authorRichard Henderson <rth@redhat.com>
Mon, 16 Jul 2001 17:57:11 +0000 (10:57 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Mon, 16 Jul 2001 17:57:11 +0000 (10:57 -0700)
        * regclass.c (init_reg_sets): Use only 32 bits per initializer
        from int_reg_class_contents.

From-SVN: r44054

gcc/ChangeLog
gcc/regclass.c

index 8fea87e4b8796d321a7da4829aeea3ad372cfa41..87407cc8023235280db0cade72683b780e791393 100644 (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.
index e3eca7f35d1985c119e7c2ed6e98e27fc718a574..c022b0a6321e79ece66eaadf9346bb8ad790c99f 100644 (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);
     }