made code C89 compliant (changed unnamed union in attributes)
[libfirm] / ir / be / bespillilp.c
index cfcdeb7..457a52d 100644 (file)
@@ -12,6 +12,8 @@
 #include "config.h"
 #endif
 
+#ifdef WITH_ILP
+
 #include <math.h>
 
 #include "hashptr.h"
@@ -633,7 +635,6 @@ void be_spill_ilp(const be_chordal_env_t *chordal_env)
        memset(&si.stats, 0, sizeof(si.stats));
        si.chordal_env     = chordal_env;
        si.obst            = &obst;
-       si.dbg             = firm_dbg_register("be.ra.spillilp");
        si.senv            = be_new_spill_env(si.dbg, chordal_env, is_mem_phi, &si);
        si.cls             = chordal_env->cls;
        si.lpp             = new_lpp(problem_name, lpp_minimize);
@@ -643,6 +644,7 @@ void be_spill_ilp(const be_chordal_env_t *chordal_env)
        si.edges           = NULL;
        si.enable_remat    = 0;
        si.enable_store    = 1;
+       FIRM_DBG_REGISTER(si.dbg, "be.ra.spillilp");
 
        firm_dbg_set_mask(si.dbg, DBG_LEVEL);
        irg_block_walk_graph(chordal_env->irg, process_block, NULL, &si);
@@ -718,3 +720,10 @@ void be_spill_ilp(const be_chordal_env_t *chordal_env)
        free_lpp(si.lpp);
        obstack_free(&obst, NULL);
 }
+
+#else /* WITH_ILP */
+
+static void only_that_you_can_compile_without_WITH_ILP_defined(void) {
+}
+
+#endif /* WITH_ILP */