From f94205465ba1d555a195902e36248b10d6a812cb Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Fri, 8 Sep 2006 09:10:16 +0000 Subject: [PATCH] warning fixes [r8196] --- ir/ana/irextbb.c | 14 -------------- ir/debug/debugger.c | 4 ++-- ir/opt/data_flow_scalar_replace.c | 15 --------------- ir/stat/const_stat.c | 2 -- 4 files changed, 2 insertions(+), 33 deletions(-) diff --git a/ir/ana/irextbb.c b/ir/ana/irextbb.c index 70727d0c7..eb61ed7bd 100644 --- a/ir/ana/irextbb.c +++ b/ir/ana/irextbb.c @@ -53,20 +53,6 @@ static void allocate_extblk(ir_node *block, env_t *env) set_irn_link(block, NULL); } -/** - * add a block to an extended block - */ -static void addto_extblk(ir_extblk *extblk, ir_node *block) -{ - /* link all blocks belonging to this extended block */ - set_irn_link(block, extblk->link); - - extblk->link = block; - extblk->visited++; - - set_Block_extbb(block, extblk); -} - /** * Returns the number of block successors. * we are interested only in 1, 2 and >2. diff --git a/ir/debug/debugger.c b/ir/debug/debugger.c index ddef8fa82..d74f2bbb1 100644 --- a/ir/debug/debugger.c +++ b/ir/debug/debugger.c @@ -802,7 +802,7 @@ static void show_by_name(type_or_ent *tore, void *env) { printf("%s", get_id_str(id)); } if (irg) - printf("[%d] (%p)\n", get_irg_graph_nr(irg), irg); + printf("[%ld] (%p)\n", get_irg_graph_nr(irg), irg); else printf(" NULL\n"); } @@ -830,7 +830,7 @@ static void show_by_ldname(type_or_ent *tore, void *env) { printf("%s", get_id_str(id)); } if (irg) - printf("[%d] (%p)\n", get_irg_graph_nr(irg), irg); + printf("[%ld] (%p)\n", get_irg_graph_nr(irg), irg); else printf(" NULL\n"); } diff --git a/ir/opt/data_flow_scalar_replace.c b/ir/opt/data_flow_scalar_replace.c index cd1c92e58..91011b3ea 100644 --- a/ir/opt/data_flow_scalar_replace.c +++ b/ir/opt/data_flow_scalar_replace.c @@ -1284,21 +1284,6 @@ static void analyse_calls(ir_node *irn, void *ctx) { } } -static int have_blk_phi_mem(ir_node *blk) { - - int i; - ir_node *out; - - for(i = get_irn_n_outs(blk) - 1; i >= 0; i--) { - - out = get_irn_out(blk, i); - if(get_irn_op(out) == op_Phi) - return 1; - } - - return 0; -} - static int set_block_dominated_first_access(ir_node *blk, int vnum, unsigned int access) { ir_node *idom, *succ; diff --git a/ir/stat/const_stat.c b/ir/stat/const_stat.c index 9409e423d..67e76580c 100644 --- a/ir/stat/const_stat.c +++ b/ir/stat/const_stat.c @@ -11,8 +11,6 @@ #include "firmstat_t.h" #include "tv_t.h" -static stat_info_t *status; - /** * calculated the dual logarithmus of |value| */ -- 2.20.1