diff options
author | Mark Mitchell <mark@codesourcery.com> | 1999-10-30 21:26:13 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 1999-10-30 21:26:13 +0000 |
commit | e225758aeea3737865fc2341560d5c3f7ddf3d52 (patch) | |
tree | 7076c29c098c234e348e0928dca4c025084059ec /gcc/ggc-common.c | |
parent | e42ea7f9349ceb9a28c0e762f702a2afbc105539 (diff) | |
download | gcc-e225758aeea3737865fc2341560d5c3f7ddf3d52.zip gcc-e225758aeea3737865fc2341560d5c3f7ddf3d52.tar.gz gcc-e225758aeea3737865fc2341560d5c3f7ddf3d52.tar.bz2 |
ggc-common.c (ggc_print_statistics): Make arguments to fprintf match format string, even on 64-bit hosts.
* ggc-common.c (ggc_print_statistics): Make arguments to fprintf
match format string, even on 64-bit hosts.
* gcc-page.c (ggc_page_print_statistics): Likewise.
From-SVN: r30274
Diffstat (limited to 'gcc/ggc-common.c')
-rw-r--r-- | gcc/ggc-common.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/ggc-common.c b/gcc/ggc-common.c index fdc0322..ab8c3a1 100644 --- a/gcc/ggc-common.c +++ b/gcc/ggc-common.c @@ -524,11 +524,11 @@ ggc_print_statistics (stream, stats) for (code = 0; code < MAX_TREE_CODES; ++code) if (ggc_stats->num_trees[code]) { - fprintf (stream, "%s%*s%-15u %-15u %7.3f\n", + fprintf (stream, "%s%*s%-15u %-15lu %7.3f\n", tree_code_name[code], - 22 - strlen (tree_code_name[code]), "", + 22 - (int) strlen (tree_code_name[code]), "", ggc_stats->num_trees[code], - ggc_stats->size_trees[code], + (unsigned long) ggc_stats->size_trees[code], (100 * ((double) ggc_stats->size_trees[code]) / ggc_stats->total_size_trees)); } @@ -543,11 +543,11 @@ ggc_print_statistics (stream, stats) for (code = 0; code < NUM_RTX_CODE; ++code) if (ggc_stats->num_rtxs[code]) { - fprintf (stream, "%s%*s%-15u %-15u %7.3f\n", + fprintf (stream, "%s%*s%-15u %-15lu %7.3f\n", rtx_name[code], - 22 - strlen (rtx_name[code]), "", + 22 - (int) strlen (rtx_name[code]), "", ggc_stats->num_rtxs[code], - ggc_stats->size_rtxs[code], + (unsigned long) ggc_stats->size_rtxs[code], (100 * ((double) ggc_stats->size_rtxs[code]) / ggc_stats->total_size_rtxs)); } |