fixed some bugs
[libfirm] / ir / be / firm / bearch_firm.c
index 3d76436..894dc8b 100644 (file)
@@ -207,6 +207,8 @@ static const arch_register_class_t *firm_get_reg_class_for_mode(const void *self
 static void firm_get_call_abi(const void *self, ir_type *method_type, be_abi_call_t *abi)
 {
        static ir_type *between_type = NULL;
+
+       be_abi_call_flags_t flags;
        const arch_register_class_t *cls = &reg_classes[CLS_DATAB];
        int i, n;
        be_abi_call_flags_t call_flags = { 0, 0, 0, 0, 0 };
@@ -231,7 +233,8 @@ static void firm_get_call_abi(const void *self, ir_type *method_type, be_abi_cal
                        be_abi_call_res_reg(abi, i, &cls->regs[i]);
        }
 
-       be_abi_call_set_flags(abi, call_flags, between_type);
+       flags.val = 0;
+       be_abi_call_set_flags(abi, flags, between_type);
 }
 
 
@@ -543,6 +546,10 @@ static void firm_before_ra(void *self)
        irg_walk_graph(cg->irg, imm_scheduler, NULL, NULL);
 }
 
+static void firm_after_ra(void *self)
+{
+}
+
 static void firm_codegen_done(void *self)
 {
        free(self);
@@ -555,6 +562,7 @@ static const arch_code_generator_if_t firm_code_gen_if = {
        firm_prepare_graph,
        firm_before_sched,
        firm_before_ra,
+       firm_after_ra,
        firm_codegen_done
 };