diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-10-30 21:26:13 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-10-30 21:26:13 +0000 |
commit | 4d678e392122d240f5c07846e2767cfac3b3d918 (patch) | |
tree | 7076c29c098c234e348e0928dca4c025084059ec /gcc/ggc-common.c | |
parent | 8d5719677b08805b06ed707aaa2df429131bc380 (diff) | |
download | gcc-4d678e392122d240f5c07846e2767cfac3b3d918.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30274 138bc75d-0d04-0410-961f-82ee72b054a4
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 fdc032294f8..ab8c3a1c196 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)); } |