diff options
author | Peter Bergner <bergner@vnet.ibm.com> | 2007-10-10 10:46:12 -0500 |
---|---|---|
committer | Peter Bergner <bergner@gcc.gnu.org> | 2007-10-10 10:46:12 -0500 |
commit | abc8b4d90eccddd5a961fd6a4b60848562b4a2f1 (patch) | |
tree | 8c530bcc582dae464a7d50fbe57747e6fae1b26a /gcc/global.c | |
parent | c456e6f17ced807b3c80a5f4578fb8711e604056 (diff) | |
download | gcc-abc8b4d90eccddd5a961fd6a4b60848562b4a2f1.zip gcc-abc8b4d90eccddd5a961fd6a4b60848562b4a2f1.tar.gz gcc-abc8b4d90eccddd5a961fd6a4b60848562b4a2f1.tar.bz2 |
ra-conflict.c (partial_bitnum, max_bitnum): Change type of variables to HOST_WIDE_INT.
* ra-conflict.c (partial_bitnum, max_bitnum): Change type of variables
to HOST_WIDE_INT.
(conflict_p, set_conflict, set_conflicts): Likewise.
* global.c (global_alloc): Likewise.
* ra.h: Update prototypes.
From-SVN: r129211
Diffstat (limited to 'gcc/global.c')
-rw-r--r-- | gcc/global.c | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/gcc/global.c b/gcc/global.c index f1964f4..1dc63d3 100644 --- a/gcc/global.c +++ b/gcc/global.c @@ -389,7 +389,7 @@ global_alloc (void) } allocno = XCNEWVEC (struct allocno, max_allocno); - partial_bitnum = XNEWVEC (int, max_allocno); + partial_bitnum = XNEWVEC (HOST_WIDE_INT, max_allocno); num_allocnos_per_blk = XCNEWVEC (int, max_blk + 1); /* ...so we can sort them in the order we want them to receive @@ -432,12 +432,14 @@ global_alloc (void) } #ifdef ENABLE_CHECKING - gcc_assert (max_bitnum <= ((max_allocno * (max_allocno - 1)) / 2)); + gcc_assert (max_bitnum <= + (((HOST_WIDE_INT) max_allocno * + ((HOST_WIDE_INT) max_allocno - 1)) / 2)); #endif if (dump_file) { - int num_bits, num_bytes, actual_bytes; + HOST_WIDE_INT num_bits, num_bytes, actual_bytes; fprintf (dump_file, "## max_blk: %d\n", max_blk); fprintf (dump_file, "## max_regno: %d\n", max_regno); @@ -447,21 +449,23 @@ global_alloc (void) num_bytes = CEIL (num_bits, 8); actual_bytes = num_bytes; fprintf (dump_file, "## Compressed triangular bitmatrix size: "); - fprintf (dump_file, "%d bits, %d bytes\n", num_bits, num_bytes); + fprintf (dump_file, HOST_WIDE_INT_PRINT_DEC " bits, ", num_bits); + fprintf (dump_file, HOST_WIDE_INT_PRINT_DEC " bytes\n", num_bytes); - num_bits = (max_allocno * (max_allocno - 1)) / 2; + num_bits = ((HOST_WIDE_INT) max_allocno * + ((HOST_WIDE_INT) max_allocno - 1)) / 2; num_bytes = CEIL (num_bits, 8); fprintf (dump_file, "## Standard triangular bitmatrix size: "); - fprintf (dump_file, "%d bits, %d bytes [%.2f%%]\n", - num_bits, num_bytes, - 100.0 * ((double) actual_bytes / (double) num_bytes)); + fprintf (dump_file, HOST_WIDE_INT_PRINT_DEC " bits, ", num_bits); + fprintf (dump_file, HOST_WIDE_INT_PRINT_DEC " bytes [%.2f%%]\n", + num_bytes, 100.0 * ((double) actual_bytes / (double) num_bytes)); - num_bits = max_allocno * max_allocno; + num_bits = (HOST_WIDE_INT) max_allocno * (HOST_WIDE_INT) max_allocno; num_bytes = CEIL (num_bits, 8); fprintf (dump_file, "## Square bitmatrix size: "); - fprintf (dump_file, "%d bits, %d bytes [%.2f%%]\n", - num_bits, num_bytes, - 100.0 * ((double) actual_bytes / (double) num_bytes)); + fprintf (dump_file, HOST_WIDE_INT_PRINT_DEC " bits, ", num_bits); + fprintf (dump_file, HOST_WIDE_INT_PRINT_DEC " bytes [%.2f%%]\n", + num_bytes, 100.0 * ((double) actual_bytes / (double) num_bytes)); } /* Calculate amount of usage of each hard reg by pseudos |