X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbecopyopt.c;h=84ab01a980de71e344aa606b5496e8b94f39de0f;hb=32bb9cd68eb4e4a550475b5ab516fd1b8de22456;hp=081c49907571a0bb869bab384276812692cfec09;hpb=ce6161a7e42a48f7422b7babcc64d8ace18e2687;p=libfirm diff --git a/ir/be/becopyopt.c b/ir/be/becopyopt.c index 081c49907..84ab01a98 100644 --- a/ir/be/becopyopt.c +++ b/ir/be/becopyopt.c @@ -136,7 +136,7 @@ void be_register_copyopt(const char *name, co_algo_info *copyopt) be_add_module_to_list(©opts, name, copyopt); } -BE_REGISTER_MODULE_CONSTRUCTOR(be_init_copyopt); +BE_REGISTER_MODULE_CONSTRUCTOR(be_init_copyopt) void be_init_copyopt(void) { lc_opt_entry_t *be_grp = lc_opt_get_grp(firm_opt_get_root(), "be"); @@ -155,7 +155,7 @@ static int void_algo(copy_opt_t *co) return 0; } -BE_REGISTER_MODULE_CONSTRUCTOR(be_init_copynone); +BE_REGISTER_MODULE_CONSTRUCTOR(be_init_copynone) void be_init_copynone(void) { static co_algo_info copyheur = { @@ -194,7 +194,7 @@ DEBUG_ONLY(static firm_dbg_module_t *dbg = NULL;) copy_opt_t *new_copy_opt(be_chordal_env_t *chordal_env, cost_fct_t get_costs) { const char *s1, *s2, *s3; - int len; + size_t len; copy_opt_t *co; FIRM_DBG_REGISTER(dbg, "ir.be.copyopt"); @@ -308,7 +308,7 @@ static int ou_max_ind_set_costs(unit_t *ou) ir_node **safe, **unsafe; int i, o, safe_count, safe_costs, unsafe_count, *unsafe_costs; bitset_t *curr; - unsigned pos; + size_t pos; int curr_weight, best_weight = 0; /* assign the nodes into two groups. @@ -344,7 +344,7 @@ static int ou_max_ind_set_costs(unit_t *ou) /* now compute the best set out of the unsafe nodes*/ if (unsafe_count > MIS_HEUR_TRIGGER) { bitset_t *best = bitset_alloca(unsafe_count); - /* Heuristik: Greedy trial and error form index 0 to unsafe_count-1 */ + /* Heuristic: Greedy trial and error form index 0 to unsafe_count-1 */ for (i=0; i