- call be_init_modules() last, so the option order is preserved
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 14 Oct 2008 01:30:35 +0000 (01:30 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 14 Oct 2008 01:30:35 +0000 (01:30 +0000)
[r22864]

ir/be/bemain.c

index 6fb7677..51df6cb 100644 (file)
@@ -317,18 +317,17 @@ void be_opt_register(void)
        lc_opt_entry_t *be_grp;
        static int run_once = 0;
 
        lc_opt_entry_t *be_grp;
        static int run_once = 0;
 
-       if (run_once) {
+       if (run_once)
                return;
                return;
-       }
-       run_once     = 1;
-
-       be_init_modules();
+       run_once = 1;
 
        be_grp = lc_opt_get_grp(firm_opt_get_root(), "be");
        lc_opt_add_table(be_grp, be_main_options);
 
        be_add_module_list_opt(be_grp, "isa", "the instruction set architecture",
                               &isa_ifs, (void**) &isa_if);
 
        be_grp = lc_opt_get_grp(firm_opt_get_root(), "be");
        lc_opt_add_table(be_grp, be_main_options);
 
        be_add_module_list_opt(be_grp, "isa", "the instruction set architecture",
                               &isa_ifs, (void**) &isa_if);
+
+       be_init_modules();
 }
 
 /* Parse one argument. */
 }
 
 /* Parse one argument. */