projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add -c to ar to remove a diagnostic, when the archive is created.
[libfirm]
/
ir
/
stat
/
stat_dmp.c
diff --git
a/ir/stat/stat_dmp.c
b/ir/stat/stat_dmp.c
index
b343fe4
..
96e237b
100644
(file)
--- a/
ir/stat/stat_dmp.c
+++ b/
ir/stat/stat_dmp.c
@@
-21,7
+21,6
@@
* @file
* @brief Statistics for Firm. Dumping.
* @author Michael Beck
* @file
* @brief Statistics for Firm. Dumping.
* @author Michael Beck
- * @version $Id$
*/
#include "config.h"
*/
#include "config.h"
@@
-471,7
+470,7
@@
static void simple_dump_edges(dumper_t *dmp, counter_t *cnt)
*/
static void simple_dump_graph(dumper_t *dmp, graph_entry_t *entry)
{
*/
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;
block_entry_t *b_entry;
extbb_entry_t *eb_entry;
@@
-480,6
+479,7
@@
static void simple_dump_graph(dumper_t *dmp, graph_entry_t *entry)
if (entry->irg) {
ir_graph *const_irg = get_const_code_irg();
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);
if (entry->irg == const_irg)
fprintf(dmp->f, "\nConst code Irg %p", (void *)entry->irg);
@@
-553,7
+553,7
@@
static void simple_dump_graph(dumper_t *dmp, graph_entry_t *entry)
/* effects of optimizations */
if (dump_opts) {
/* effects of optimizations */
if (dump_opts) {
-
in
t 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);
simple_dump_real_func_calls(dmp, &entry->cnt[gcnt_acc_real_func_call]);
simple_dump_tail_recursion(dmp, entry->num_tail_recursion);
@@
-651,7
+651,8
@@
static void dump_tbl_line(const distrib_entry_t *entry, void *env)
{
dumper_t *dmp = (dumper_t*)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 */
/**
} /* dump_tbl_line */
/**