OSDN Git Service

* regclass.c (init_reg_sets): Use only 32 bits per initializer
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 16 Jul 2001 17:57:11 +0000 (17:57 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 16 Jul 2001 17:57:11 +0000 (17:57 +0000)
        from int_reg_class_contents.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44054 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/regclass.c

index 8fea87e..87407cc 100644 (file)
@@ -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.
index e3eca7f..c022b0a 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);
     }