X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbecopyheur3.c;h=eb0e0f4e52af1aeb009aa7980bd9f457696ee70f;hb=e5b57877b6db678ba428e3cbc01cbcc0815922f9;hp=b9d8784d5d982f8229c51057ed02c1d8c6ff28ed;hpb=bb5461e3f6f900c09222814f2eec779684f28f73;p=libfirm diff --git a/ir/be/becopyheur3.c b/ir/be/becopyheur3.c index b9d8784d5..eb0e0f4e5 100644 --- a/ir/be/becopyheur3.c +++ b/ir/be/becopyheur3.c @@ -28,6 +28,8 @@ #include "config.h" #endif +#ifdef WITH_JVM + #include #include @@ -80,7 +82,7 @@ static lc_opt_enum_mask_var_t dump_var = { static const lc_opt_table_entry_t options[] = { LC_OPT_ENT_ENUM_MASK("dump", "dump ifg cloud", &dump_var), LC_OPT_ENT_INT ("dbg", "debug level for the Java coalescer", &dbg_level), - LC_OPT_ENT_NULL + LC_OPT_LAST }; void be_init_copyheur3(void) @@ -148,8 +150,8 @@ int co_solve_heuristic_java(copy_opt_t *co) } } - node_map = malloc((get_irg_last_idx(co->irg) + 1) * sizeof(node_map[0])); - inv_node_map = malloc((get_irg_last_idx(co->irg) + 1) * sizeof(inv_node_map[0])); + node_map = xmalloc((get_irg_last_idx(co->irg) + 1) * sizeof(node_map[0])); + inv_node_map = xmalloc((get_irg_last_idx(co->irg) + 1) * sizeof(inv_node_map[0])); curr_idx = 0; be_ifg_foreach_node(ifg, nodes_it, n) { @@ -237,3 +239,5 @@ int co_solve_heuristic_java(copy_opt_t *co) bitset_free(nodes); return 0; } + +#endif