X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fstat%2Fstat_dmp.c;h=f40568180a9bf40a0915492541264481de641870;hb=0318dc1a48ce72b311592c28affc31fabc95f026;hp=b343fe42f7492dc83511b7519bb7e0e30d270245;hpb=fc80e89b7d176590d74e02ddad62481e7275a7c0;p=libfirm diff --git a/ir/stat/stat_dmp.c b/ir/stat/stat_dmp.c index b343fe42f..f40568180 100644 --- a/ir/stat/stat_dmp.c +++ b/ir/stat/stat_dmp.c @@ -471,7 +471,7 @@ static void simple_dump_edges(dumper_t *dmp, counter_t *cnt) */ static void simple_dump_graph(dumper_t *dmp, graph_entry_t *entry) { - int i, dump_opts = 1; + int dump_opts = 1; block_entry_t *b_entry; extbb_entry_t *eb_entry; @@ -480,6 +480,7 @@ static void simple_dump_graph(dumper_t *dmp, graph_entry_t *entry) if (entry->irg) { ir_graph *const_irg = get_const_code_irg(); + int i; if (entry->irg == const_irg) fprintf(dmp->f, "\nConst code Irg %p", (void *)entry->irg); @@ -553,7 +554,7 @@ static void simple_dump_graph(dumper_t *dmp, graph_entry_t *entry) /* effects of optimizations */ if (dump_opts) { - int i; + size_t i; simple_dump_real_func_calls(dmp, &entry->cnt[gcnt_acc_real_func_call]); simple_dump_tail_recursion(dmp, entry->num_tail_recursion); @@ -651,7 +652,8 @@ static void dump_tbl_line(const distrib_entry_t *entry, void *env) { dumper_t *dmp = (dumper_t*)env; - fprintf(dmp->f, "%d : %u\n", PTR_TO_INT(entry->object), cnt_to_uint(&entry->cnt)); + fprintf(dmp->f, "%ld : %u\n", (long int)PTR_TO_INT(entry->object), + cnt_to_uint(&entry->cnt)); } /* dump_tbl_line */ /**