fix a few warnings
authorMatthias Braun <matze@braunis.de>
Sun, 25 May 2008 09:39:18 +0000 (09:39 +0000)
committerMatthias Braun <matze@braunis.de>
Sun, 25 May 2008 09:39:18 +0000 (09:39 +0000)
[r19760]

ir/ir/irop.c
ir/opt/boolopt.c
ir/opt/data_flow_scalar_replace.c
ir/opt/escape_ana.c
ir/opt/ldst2.c

index dc4b930..8cbc508 100644 (file)
@@ -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));
index a8251c8..9614e2c 100644 (file)
@@ -5,6 +5,7 @@
 #include "ircons.h"
 #include "irgmod.h"
 #include "irgwalk.h"
+#include "irprintf.h"
 #include "irnode.h"
 #include "tv.h"
 
index 8ec8259..a84b9dd 100644 (file)
@@ -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;
index 26d5a97..106abe4 100644 (file)
@@ -47,6 +47,7 @@
 #include "analyze_irg_args.h"
 #include "irgmod.h"
 #include "ircons.h"
+#include "irprintf.h"
 #include "debug.h"
 
 /**
index 80abaee..3912424 100644 (file)
@@ -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");