aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtl.c
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/rtl.c
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/rtl.c')
-rw-r--r--gcc/rtl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/rtl.c b/gcc/rtl.c
index bf897bf..2ab3499 100644
--- a/gcc/rtl.c
+++ b/gcc/rtl.c
@@ -821,7 +821,7 @@ dump_rtx_statistics (void)
unsigned j = indices[i];
if (rtx_alloc_counts[j])
{
- fprintf (stderr, "%-24s %6zu%c %9zu%c\n",
+ fprintf (stderr, "%-24s " PRsa (6) " " PRsa (9) "\n",
GET_RTX_NAME (j),
SIZE_AMOUNT (rtx_alloc_counts[j]),
SIZE_AMOUNT (rtx_alloc_sizes[j]));
@@ -832,14 +832,14 @@ dump_rtx_statistics (void)
if (rtvec_alloc_counts)
{
- fprintf (stderr, "%-24s %6zu%c %9zu%c\n", "rtvec",
+ fprintf (stderr, "%-24s " PRsa (6) " " PRsa (9) "\n", "rtvec",
SIZE_AMOUNT (rtvec_alloc_counts),
SIZE_AMOUNT (rtvec_alloc_sizes));
total_counts += rtvec_alloc_counts;
total_sizes += rtvec_alloc_sizes;
}
fprintf (stderr, "-----------------------------------------------\n");
- fprintf (stderr, "%-24s %6d%c %9d%c\n",
+ fprintf (stderr, "%-24s " PRsa (6) " " PRsa (9) "\n",
"Total", SIZE_AMOUNT (total_counts),
SIZE_AMOUNT (total_sizes));
fprintf (stderr, "-----------------------------------------------\n");