From a0b48080020f344b3d594f31546c714564a061c7 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Fri, 16 Nov 2018 13:39:18 +0000 Subject: 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 --- gcc/bitmap.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc/bitmap.h') diff --git a/gcc/bitmap.h b/gcc/bitmap.h index 973ea84..9a180da 100644 --- a/gcc/bitmap.h +++ b/gcc/bitmap.h @@ -239,9 +239,9 @@ struct bitmap_usage: public mem_usage { char *location_string = loc->to_string (); - fprintf (stderr, "%-48s %9zu%c:%5.1f%%" - "%9zu%c%9zu%c:%5.1f%%" - "%11" PRIu64 "%c%11" PRIu64 "%c%10s\n", + fprintf (stderr, "%-48s " PRsa (9) ":%5.1f%%" + PRsa (9) PRsa (9) ":%5.1f%%" + PRsa (11) PRsa (11) "%10s\n", location_string, SIZE_AMOUNT (m_allocated), get_percent (m_allocated, total.m_allocated), SIZE_AMOUNT (m_peak), SIZE_AMOUNT (m_times), -- cgit v1.1