diff options
author | Michael Matz <matz@gcc.gnu.org> | 2018-11-16 13:39:18 +0000 |
---|---|---|
committer | Michael Matz <matz@gcc.gnu.org> | 2018-11-16 13:39:18 +0000 |
commit | a0b48080020f344b3d594f31546c714564a061c7 (patch) | |
tree | 8162f07dcc25096c1086e79bcd23464be41cb879 /gcc/input.c | |
parent | 12eac2321bb613a447197e7a1308d4ce4a266dd5 (diff) | |
download | gcc-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/input.c')
-rw-r--r-- | gcc/input.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/gcc/input.c b/gcc/input.c index 347122e..237c0d5 100644 --- a/gcc/input.c +++ b/gcc/input.c @@ -940,35 +940,35 @@ dump_line_table_statistics (void) fprintf (stderr, "\nLine Table allocations during the " "compilation process\n"); - fprintf (stderr, "Number of ordinary maps used: %5ld%c\n", + fprintf (stderr, "Number of ordinary maps used: " PRsa (5) "\n", SIZE_AMOUNT (s.num_ordinary_maps_used)); - fprintf (stderr, "Ordinary map used size: %5ld%c\n", + fprintf (stderr, "Ordinary map used size: " PRsa (5) "\n", SIZE_AMOUNT (s.ordinary_maps_used_size)); - fprintf (stderr, "Number of ordinary maps allocated: %5ld%c\n", + fprintf (stderr, "Number of ordinary maps allocated: " PRsa (5) "\n", SIZE_AMOUNT (s.num_ordinary_maps_allocated)); - fprintf (stderr, "Ordinary maps allocated size: %5ld%c\n", + fprintf (stderr, "Ordinary maps allocated size: " PRsa (5) "\n", SIZE_AMOUNT (s.ordinary_maps_allocated_size)); - fprintf (stderr, "Number of macro maps used: %5ld%c\n", + fprintf (stderr, "Number of macro maps used: " PRsa (5) "\n", SIZE_AMOUNT (s.num_macro_maps_used)); - fprintf (stderr, "Macro maps used size: %5ld%c\n", + fprintf (stderr, "Macro maps used size: " PRsa (5) "\n", SIZE_AMOUNT (s.macro_maps_used_size)); - fprintf (stderr, "Macro maps locations size: %5ld%c\n", + fprintf (stderr, "Macro maps locations size: " PRsa (5) "\n", SIZE_AMOUNT (s.macro_maps_locations_size)); - fprintf (stderr, "Macro maps size: %5ld%c\n", + fprintf (stderr, "Macro maps size: " PRsa (5) "\n", SIZE_AMOUNT (macro_maps_size)); - fprintf (stderr, "Duplicated maps locations size: %5ld%c\n", + fprintf (stderr, "Duplicated maps locations size: " PRsa (5) "\n", SIZE_AMOUNT (s.duplicated_macro_maps_locations_size)); - fprintf (stderr, "Total allocated maps size: %5ld%c\n", + fprintf (stderr, "Total allocated maps size: " PRsa (5) "\n", SIZE_AMOUNT (total_allocated_map_size)); - fprintf (stderr, "Total used maps size: %5ld%c\n", + fprintf (stderr, "Total used maps size: " PRsa (5) "\n", SIZE_AMOUNT (total_used_map_size)); - fprintf (stderr, "Ad-hoc table size: %5ld%c\n", + fprintf (stderr, "Ad-hoc table size: " PRsa (5) "\n", SIZE_AMOUNT (s.adhoc_table_size)); - fprintf (stderr, "Ad-hoc table entries used: %5ld%c\n", + fprintf (stderr, "Ad-hoc table entries used: " PRsa (5) "\n", SIZE_AMOUNT (s.adhoc_table_entries_used)); - fprintf (stderr, "optimized_ranges: %5xu%c\n", + fprintf (stderr, "optimized_ranges: " PRsa (5) "\n", SIZE_AMOUNT (line_table->num_optimized_ranges)); - fprintf (stderr, "unoptimized_ranges: %5xu%c\n", + fprintf (stderr, "unoptimized_ranges: " PRsa (5) "\n", SIZE_AMOUNT (line_table->num_unoptimized_ranges)); fprintf (stderr, "\n"); |