aboutsummaryrefslogtreecommitdiff
path: root/gcc/alloc-pool.h
diff options
context:
space:
mode:
authorMichael Matz <matz@gcc.gnu.org>2018-11-16 13:39:18 +0000
committerMichael Matz <matz@gcc.gnu.org>2018-11-16 13:39:18 +0000
commita0b48080020f344b3d594f31546c714564a061c7 (patch)
tree8162f07dcc25096c1086e79bcd23464be41cb879 /gcc/alloc-pool.h
parent12eac2321bb613a447197e7a1308d4ce4a266dd5 (diff)
downloadgcc-a0b48080020f344b3d594f31546c714564a061c7.zip
gcc-a0b48080020f344b3d594f31546c714564a061c7.tar.gz
gcc-a0b48080020f344b3d594f31546c714564a061c7.tar.bz2
Don't use %z printf length specifier
* system.h (PRsa): New macro. (SIZE_AMOUNT): Cast number to uint64_t. * alloc-pool.h (pool_usage::dump): Don't use %zu but PRsa. (pool_usage::dump_footer): Likewise and also use PRIu64. * bitmap.h (bitmap_usage::dump): Likewise. * ggc-common.c (ggc_usage::dump): Likewise. * ggc-page.c (ggc_print_statistics): Likewise. * input.c (dump_line_table_statistics): Likewise. * mem-stats.h (mem_usage::dump): Likewise. (mem_usage::dump_footer): Likewise. * rtl.c (dump_rtx_statistics): Likewise. * tree-cfg.c (dump_cfg_stats): Likewise. * tree-dfa.c (dump_dfa_stats): Likewise. * tree-phinodes.c (phinodes_print_statistics): Likewise. * tree-ssanames (ssanames_print_statistics): Likewise. * vec.c (vec_usage::dump): Likewise. (vec_usage::dump_footer): Likewise. From-SVN: r266208
Diffstat (limited to 'gcc/alloc-pool.h')
-rw-r--r--gcc/alloc-pool.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/alloc-pool.h b/gcc/alloc-pool.h
index d17a05c..81cb69e 100644
--- a/gcc/alloc-pool.h
+++ b/gcc/alloc-pool.h
@@ -63,8 +63,8 @@ struct pool_usage: public mem_usage
{
char *location_string = loc->to_string ();
- fprintf (stderr, "%-32s%-48s %5zu%c%9zu%c:%5.1f%%%9zu"
- "%c%9zu%c:%5.1f%%%12zu\n",
+ fprintf (stderr, "%-32s%-48s " PRsa(5) PRsa(9) ":%5.1f%%"
+ PRsa(9) PRsa(9) ":%5.1f%%%12" PRIu64 "\n",
m_pool_name, location_string,
SIZE_AMOUNT (m_instances),
SIZE_AMOUNT (m_allocated),
@@ -72,7 +72,7 @@ struct pool_usage: public mem_usage
SIZE_AMOUNT (m_peak),
SIZE_AMOUNT (m_times),
get_percent (m_times, total.m_times),
- m_element_size);
+ (uint64_t)m_element_size);
free (location_string);
}
@@ -91,7 +91,7 @@ struct pool_usage: public mem_usage
dump_footer ()
{
print_dash_line ();
- fprintf (stderr, "%s%82zu%c%10zu%c\n", "Total",
+ fprintf (stderr, "%s" PRsa(82) PRsa(10) "\n", "Total",
SIZE_AMOUNT (m_instances), SIZE_AMOUNT (m_allocated));
print_dash_line ();
}