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
This commit is contained in:
Mark Mitchell 1999-10-30 21:26:13 +00:00 committed by Mark Mitchell
parent e42ea7f934
commit e225758aee
3 changed files with 18 additions and 9 deletions

View File

@ -1,3 +1,9 @@
Sat Oct 30 14:28:52 1999 Mark Mitchell <mark@codesourcery.com>
* 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.
Sat Oct 30 14:38:04 1999 Catherine Moore <clm@cygnus.com>
* config/i386/i386.c (ix86_cpu): Revert last patch.

View File

@ -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));
}

View File

@ -1146,10 +1146,13 @@ ggc_page_print_statistics ()
in_use +=
(OBJECTS_PER_PAGE (i) - p->num_free_objects) * (1 << i);
}
fprintf (stderr, "%-3d %-15u %-15u\n", i, allocated, in_use);
fprintf (stderr, "%-3d %-15lu %-15u\n", i,
(unsigned long) allocated, in_use);
}
/* Print out some global information. */
fprintf (stderr, "\nTotal bytes marked: %u\n", G.allocated);
fprintf (stderr, "Total bytes mapped: %u\n", G.bytes_mapped);
fprintf (stderr, "\nTotal bytes marked: %lu\n",
(unsigned long) G.allocated);
fprintf (stderr, "Total bytes mapped: %lu\n",
(unsigned long) G.bytes_mapped);
}