Commit 2ec3ab99 by Ulrich Weigand Committed by Ulrich Weigand

ra-colorize.c (hardregset_to_string): Adapt to HARD_REG_SET implementation changes.

	* ra-colorize.c (hardregset_to_string): Adapt to HARD_REG_SET
	implementation changes.

From-SVN: r87256
parent 0b21d1dc
2004-09-09 Ulrich Weigand <uweigand@de.ibm.com> 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 * combine.c (try_combine): When swapping i2 and i3, newi2pat may be
a PARALLEL instead of a SET due to added clobbers. a PARALLEL instead of a SET due to added clobbers.
......
...@@ -1130,15 +1130,15 @@ static char * ...@@ -1130,15 +1130,15 @@ static char *
hardregset_to_string (HARD_REG_SET s) hardregset_to_string (HARD_REG_SET s)
{ {
static char string[/*FIRST_PSEUDO_REGISTER + 30*/1024]; static char string[/*FIRST_PSEUDO_REGISTER + 30*/1024];
#if FIRST_PSEUDO_REGISTER <= HOST_BITS_PER_WIDE_INT #if FIRST_PSEUDO_REGISTER <= HOST_BITS_PER_WIDEST_FAST_INT
sprintf (string, HOST_WIDE_INT_PRINT_HEX, s); sprintf (string, HOST_WIDE_INT_PRINT_HEX, (HOST_WIDE_INT) s);
#else #else
char *c = string; char *c = string;
int i,j; int i,j;
c += sprintf (c, "{ "); c += sprintf (c, "{ ");
for (i = 0;i < HARD_REG_SET_LONGS; i++) 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", ( 1 << j) & s[i] ? "1" : "0");
c += sprintf (c, "%s", i ? ", " : ""); c += sprintf (c, "%s", i ? ", " : "");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment