From: Richard Henderson Date: Fri, 9 Jul 2004 22:31:02 +0000 (-0700) Subject: * tree-cfg.c (dump_cfg_stats): Fix 64-bit format mismatch errors. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f7fda74995eba965f74b55587caaa33b86d550eb;p=gcc.git * tree-cfg.c (dump_cfg_stats): Fix 64-bit format mismatch errors. From-SVN: r84409 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1ae7b083dc5..f332652290c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2004-04-09 Richard Henderson + + * tree-cfg.c (dump_cfg_stats): Fix 64-bit format mismatch errors. + 2004-07-09 Eric Christopher * config/rs6000/40x.md: Split into two automatons. diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index ca51213af4f..3c790b4db84 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -2308,10 +2308,10 @@ dump_cfg_stats (FILE *file) { static long max_num_merged_labels = 0; unsigned long size, total = 0; - long n_edges; + int n_edges; basic_block bb; const char * const fmt_str = "%-30s%-13s%12s\n"; - const char * const fmt_str_1 = "%-30s%13lu%11lu%c\n"; + const char * const fmt_str_1 = "%-30s%13d%11lu%c\n"; const char * const fmt_str_3 = "%-43s%11lu%c\n"; const char *funcname = lang_hooks.decl_printable_name (current_function_decl, 2); @@ -2326,8 +2326,8 @@ dump_cfg_stats (FILE *file) size = n_basic_blocks * sizeof (struct basic_block_def); total += size; - fprintf (file, fmt_str_1, "Basic blocks", n_basic_blocks, SCALE (size), - LABEL (size)); + fprintf (file, fmt_str_1, "Basic blocks", n_basic_blocks, + SCALE (size), LABEL (size)); n_edges = 0; FOR_EACH_BB (bb)