Commit e225758a by Mark Mitchell Committed by Mark Mitchell

ggc-common.c (ggc_print_statistics): Make arguments to fprintf match format…

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
parent e42ea7f9
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> Sat Oct 30 14:38:04 1999 Catherine Moore <clm@cygnus.com>
* config/i386/i386.c (ix86_cpu): Revert last patch. * config/i386/i386.c (ix86_cpu): Revert last patch.
......
...@@ -524,11 +524,11 @@ ggc_print_statistics (stream, stats) ...@@ -524,11 +524,11 @@ ggc_print_statistics (stream, stats)
for (code = 0; code < MAX_TREE_CODES; ++code) for (code = 0; code < MAX_TREE_CODES; ++code)
if (ggc_stats->num_trees[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], tree_code_name[code],
22 - strlen (tree_code_name[code]), "", 22 - (int) strlen (tree_code_name[code]), "",
ggc_stats->num_trees[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]) (100 * ((double) ggc_stats->size_trees[code])
/ ggc_stats->total_size_trees)); / ggc_stats->total_size_trees));
} }
...@@ -543,11 +543,11 @@ ggc_print_statistics (stream, stats) ...@@ -543,11 +543,11 @@ ggc_print_statistics (stream, stats)
for (code = 0; code < NUM_RTX_CODE; ++code) for (code = 0; code < NUM_RTX_CODE; ++code)
if (ggc_stats->num_rtxs[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], rtx_name[code],
22 - strlen (rtx_name[code]), "", 22 - (int) strlen (rtx_name[code]), "",
ggc_stats->num_rtxs[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]) (100 * ((double) ggc_stats->size_rtxs[code])
/ ggc_stats->total_size_rtxs)); / ggc_stats->total_size_rtxs));
} }
......
...@@ -1146,10 +1146,13 @@ ggc_page_print_statistics () ...@@ -1146,10 +1146,13 @@ ggc_page_print_statistics ()
in_use += in_use +=
(OBJECTS_PER_PAGE (i) - p->num_free_objects) * (1 << i); (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. */ /* Print out some global information. */
fprintf (stderr, "\nTotal bytes marked: %u\n", G.allocated); fprintf (stderr, "\nTotal bytes marked: %lu\n",
fprintf (stderr, "Total bytes mapped: %u\n", G.bytes_mapped); (unsigned long) G.allocated);
fprintf (stderr, "Total bytes mapped: %lu\n",
(unsigned long) G.bytes_mapped);
} }
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