fix warnings
[libfirm] / ir / opt / code_placement.c
index 1f9c2e1..0d633ca 100644 (file)
@@ -23,7 +23,6 @@
  *           often.
  * @author   Christian Schaefer, Goetz Lindenmaier, Sebastian Felis,
  *           Michael Beck
- * @version  $Id$
  *
  * The idea here is to push nodes as deep into the dominance tree as their
  * dependencies allow. After pushing them back up out of as many loops as
@@ -423,7 +422,7 @@ static ir_graph_state_t do_codeplacement(ir_graph *irg)
        return 0;
 }
 
-optdesc_t opt_codeplacement = {
+static optdesc_t opt_codeplacement = {
        "code-placement",
        IR_GRAPH_STATE_NO_CRITICAL_EDGES |
        IR_GRAPH_STATE_CONSISTENT_OUTS |
@@ -448,6 +447,7 @@ static void place_code_wrapper(ir_graph *irg)
        set_opt_global_cse(0);
 }
 
+#if 0
 static ir_graph_state_t do_gcse(ir_graph *irg)
 {
        set_opt_global_cse(1);
@@ -457,7 +457,7 @@ static ir_graph_state_t do_gcse(ir_graph *irg)
        return 0;
 }
 
-optdesc_t opt_gcse = {
+static optdesc_t opt_gcse = {
        "gcse",
        IR_GRAPH_STATE_NO_CRITICAL_EDGES |
        IR_GRAPH_STATE_CONSISTENT_OUTS |
@@ -465,6 +465,7 @@ optdesc_t opt_gcse = {
        IR_GRAPH_STATE_CONSISTENT_LOOPINFO,
        do_gcse,
 };
+#endif
 
 ir_graph_pass_t *place_code_pass(const char *name)
 {