X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbemodule.c;h=18bd104a05d0481374c4b70874306793a6f663d9;hb=5474a1c188c9d59eea2c915515980cd9cbab58d8;hp=9bf6693ee7b3288823fd0c113ad37c5c4bf5527e;hpb=32bb9cd68eb4e4a550475b5ab516fd1b8de22456;p=libfirm diff --git a/ir/be/bemodule.c b/ir/be/bemodule.c index 9bf6693ee..18bd104a0 100644 --- a/ir/be/bemodule.c +++ b/ir/be/bemodule.c @@ -22,7 +22,6 @@ * @brief Backend module interface. * @author Matthias Braun * @date 29.09.2005 - * @version $Id$ */ #include "config.h" @@ -68,6 +67,7 @@ void be_init_ra(void); void be_init_spillbelady(void); void be_init_ssaconstr(void); void be_init_stabs(void); +void be_init_dwarf(void); void be_init_pref_alloc(void); void be_init_irgmod(void); void be_init_loopana(void); @@ -128,6 +128,7 @@ void be_init_modules(void) be_init_pref_alloc(); be_init_state(); be_init_stabs(); + be_init_dwarf(); be_init_arch_ia32(); be_init_arch_arm(); @@ -228,7 +229,7 @@ static int dump_opt_module_vals(char *buf, size_t buflen, const char *name, (void) len; for (module = *(moddata->list_head); module != NULL; module = module->next) { - size_t len = strlen(module->name); + size_t name_len = strlen(module->name); if (module != *(moddata->list_head)) { p = strncat(p, ", ", buflen - 1); @@ -237,10 +238,10 @@ static int dump_opt_module_vals(char *buf, size_t buflen, const char *name, p = strncat(p, module->name, buflen - 1); - if (len >= buflen) + if (name_len >= buflen) break; - buflen -= len; + buflen -= name_len; } return strlen(buf);