aboutsummaryrefslogtreecommitdiff
path: root/gcc/mem-stats.h
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2016-02-23 14:01:51 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2016-02-23 14:01:51 +0000
commit43331dfbb8266227a13bb5919dd9f1c4b74a8d16 (patch)
tree09fcc969fcebe3a9bbdca051a20be5196aedb6d0 /gcc/mem-stats.h
parentc60ec7c23830edc6e4f33b2f7858df8e84ce2c37 (diff)
downloadgcc-43331dfbb8266227a13bb5919dd9f1c4b74a8d16.zip
gcc-43331dfbb8266227a13bb5919dd9f1c4b74a8d16.tar.gz
gcc-43331dfbb8266227a13bb5919dd9f1c4b74a8d16.tar.bz2
mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
2016-02-23 Richard Biener <rguenther@suse.de> * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t. * bitmap.h (struct bitmap_usage): Likewise. (bitmap_move): Declare. * bitmap.c (register_overhead): Take size_t argument. (bitmap_move): New function. * df-problems.c (df_rd_transfer_function): Use bitmap_move to properly account overhead. * tree.c (free_node): Use tree_size. From-SVN: r233633
Diffstat (limited to 'gcc/mem-stats.h')
-rw-r--r--gcc/mem-stats.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/gcc/mem-stats.h b/gcc/mem-stats.h
index 0b1dda2..d3a324e 100644
--- a/gcc/mem-stats.h
+++ b/gcc/mem-stats.h
@@ -190,10 +190,11 @@ struct mem_usage
{
char *location_string = loc->to_string ();
- fprintf (stderr, "%-48s %10li:%5.1f%%%10li%10li:%5.1f%%%10s\n",
- location_string,
- (long)m_allocated, get_percent (m_allocated, total.m_allocated),
- (long)m_peak, (long)m_times,
+ fprintf (stderr, "%-48s %10" PRIu64 ":%5.1f%%"
+ "%10" PRIu64 "%10" PRIu64 ":%5.1f%%%10s\n",
+ location_string, (uint64_t)m_allocated,
+ get_percent (m_allocated, total.m_allocated),
+ (uint64_t)m_peak, (uint64_t)m_times,
get_percent (m_times, total.m_times), loc->m_ggc ? "ggc" : "heap");
free (location_string);
@@ -204,8 +205,8 @@ struct mem_usage
dump_footer () const
{
print_dash_line ();
- fprintf (stderr, "%s%54li%27li\n", "Total", (long)m_allocated,
- (long)m_times);
+ fprintf (stderr, "%s%54" PRIu64 "%27" PRIu64 "\n", "Total",
+ (uint64_t)m_allocated, (uint64_t)m_times);
print_dash_line ();
}