ra-colorize.c (hardregset_to_string): Adapt to HARD_REG_SET implementation changes.
authorUlrich Weigand <uweigand@de.ibm.com>
Thu, 9 Sep 2004 21:58:57 +0000 (21:58 +0000)
committerUlrich Weigand <uweigand@gcc.gnu.org>
Thu, 9 Sep 2004 21:58:57 +0000 (21:58 +0000)
* ra-colorize.c (hardregset_to_string): Adapt to HARD_REG_SET
implementation changes.

From-SVN: r87256

gcc/ChangeLog
gcc/ra-colorize.c

index 0d27f66352a76a8f898a836ab3f5587b68e50b21..57e0d484c8a7b1befc31e91f87bff424fe820de0 100644 (file)
@@ -1,3 +1,8 @@
+2004-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * ra-colorize.c (hardregset_to_string): Adapt to HARD_REG_SET
+       implementation changes.
+
 2004-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * combine.c (try_combine): When swapping i2 and i3, newi2pat may be
index 0fe848af0f1d04e7bcf12f1931588eedb524aa09..829a2b73a062fd05d86c79bf7d765317e798f46c 100644 (file)
@@ -1130,15 +1130,15 @@ static char *
 hardregset_to_string (HARD_REG_SET s)
 {
   static char string[/*FIRST_PSEUDO_REGISTER + 30*/1024];
-#if FIRST_PSEUDO_REGISTER <= HOST_BITS_PER_WIDE_INT
-  sprintf (string, HOST_WIDE_INT_PRINT_HEX, s);
+#if FIRST_PSEUDO_REGISTER <= HOST_BITS_PER_WIDEST_FAST_INT
+  sprintf (string, HOST_WIDE_INT_PRINT_HEX, (HOST_WIDE_INT) s);
 #else
   char *c = string;
   int i,j;
   c += sprintf (c, "{ ");
   for (i = 0;i < HARD_REG_SET_LONGS; i++)
     {
-      for (j = 0; j < HOST_BITS_PER_WIDE_INT; j++)
+      for (j = 0; j < HOST_BITS_PER_WIDEST_FAST_INT; j++)
          c += sprintf (c, "%s", ( 1 << j) & s[i] ? "1" : "0");
       c += sprintf (c, "%s", i ? ", " : "");
     }