From: Matthias Braun Date: Sun, 25 May 2008 09:39:18 +0000 (+0000) Subject: fix a few warnings X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=f3e6f325b23d8b25323e491ce2eb675f5f2ba548;p=libfirm fix a few warnings [r19760] --- diff --git a/ir/ir/irop.c b/ir/ir/irop.c index dc4b9308a..8cbc508f1 100644 --- a/ir/ir/irop.c +++ b/ir/ir/irop.c @@ -246,7 +246,7 @@ new_ir_op(unsigned code, const char *name, op_pin_state p, res->flags = flags; res->opar = opar; res->op_index = op_index; - res->tag = NULL; + res->tag = 0; if (ops) memcpy(&res->ops, ops, sizeof(res->ops)); diff --git a/ir/opt/boolopt.c b/ir/opt/boolopt.c index a8251c805..9614e2cd8 100644 --- a/ir/opt/boolopt.c +++ b/ir/opt/boolopt.c @@ -5,6 +5,7 @@ #include "ircons.h" #include "irgmod.h" #include "irgwalk.h" +#include "irprintf.h" #include "irnode.h" #include "tv.h" diff --git a/ir/opt/data_flow_scalar_replace.c b/ir/opt/data_flow_scalar_replace.c index 8ec825903..a84b9dd6b 100644 --- a/ir/opt/data_flow_scalar_replace.c +++ b/ir/opt/data_flow_scalar_replace.c @@ -806,9 +806,6 @@ static void split_call_mem_edge(env_t *env, ir_node *call, pset *accessed_entiti int *accessed_leaves_vnum = NULL; /**< An arraw, where are saved the value number, that are synced from call's sync node, if we need it.*/ - if(get_irn_node_nr(call) == 2763) - printf("\nHi\n"); - call_blk = get_nodes_block(call); val_arr = get_irn_link(call_blk); /* An array to save the memory edges, that must be @@ -1534,9 +1531,6 @@ void data_flow_scalar_replacement_opt(ir_graph *irg) { } } - if(get_firm_verbosity()) - printf("vnumber in data flow= %i\n", vnum); - /* Allocate value number for the globule memory edge. * and a value number for the value numbers state.*/ vnum = vnum + 2; diff --git a/ir/opt/escape_ana.c b/ir/opt/escape_ana.c index 26d5a97a3..106abe4b7 100644 --- a/ir/opt/escape_ana.c +++ b/ir/opt/escape_ana.c @@ -47,6 +47,7 @@ #include "analyze_irg_args.h" #include "irgmod.h" #include "ircons.h" +#include "irprintf.h" #include "debug.h" /** diff --git a/ir/opt/ldst2.c b/ir/opt/ldst2.c index 80abaee6f..39124246d 100644 --- a/ir/opt/ldst2.c +++ b/ir/opt/ldst2.c @@ -549,7 +549,7 @@ static void AddSyncPreds(ir_nodeset_t* preds, ir_node* sync) } } - +#if 0 static void NormaliseSync(ir_node* node, void* env) { ir_nodeset_t preds; @@ -579,8 +579,6 @@ static void NormaliseSync(ir_node* node, void* env) ir_nodeset_destroy(&preds); } - -#if 0 void opt_ldst2(ir_graph* irg) { FIRM_DBG_REGISTER(dbg, "firm.opt.ldst2");