diff options
author | Richard Henderson <rth@redhat.com> | 2004-07-09 15:31:02 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2004-07-09 15:31:02 -0700 |
commit | f7fda74995eba965f74b55587caaa33b86d550eb (patch) | |
tree | 85ff7d7a279d0c70db685629cdf1f9decccf17c8 | |
parent | 8598a1135ac5f99793d69679f4ec3537f2b83d1b (diff) | |
download | gcc-f7fda74995eba965f74b55587caaa33b86d550eb.zip gcc-f7fda74995eba965f74b55587caaa33b86d550eb.tar.gz gcc-f7fda74995eba965f74b55587caaa33b86d550eb.tar.bz2 |
* tree-cfg.c (dump_cfg_stats): Fix 64-bit format mismatch errors.
From-SVN: r84409
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/tree-cfg.c | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1ae7b08..f332652 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2004-04-09 Richard Henderson <rth@redhat.com> + + * tree-cfg.c (dump_cfg_stats): Fix 64-bit format mismatch errors. + 2004-07-09 Eric Christopher <echristo@redhat.com> * config/rs6000/40x.md: Split into two automatons. diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index ca51213..3c790b4 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) |