Restore get_move_code removed during the merge.  Remove additional } after removing ccp_clear call during merge.
@@ -1463,7 +1463,10 @@ static int def_tab_el_eq (def_tab_el_t el1, def_tab_el_t el2, void *arg) {
return el1.reg == el2.reg && el1.bb == el2.bb;
}
-static MIR_insn_code_t get_move_code (MIR_type_t type);
+static MIR_insn_code_t get_move_code (MIR_type_t type) {
+ return (type == MIR_T_F ? MIR_FMOV
+ : type == MIR_T_D ? MIR_DMOV : type == MIR_T_LD ? MIR_LDMOV : MIR_MOV);
+}
static bb_insn_t get_start_insn (gen_ctx_t gen_ctx, VARR (bb_insn_t) * start_insns, MIR_reg_t reg) {
MIR_context_t ctx = gen_ctx->ctx;
@@ -5831,7 +5834,6 @@ void *MIR_gen (MIR_context_t ctx, MIR_item_t func_item) {
});
}
}
-}
#endif /* #ifndef NO_CCP */
make_io_dup_op_insns (gen_ctx);
target_machinize (gen_ctx);
@@ -5887,7 +5889,8 @@ target_rebase (gen_ctx, func_item->u.func->machine_code);
func_item->u.func->call_addr = _MIR_get_wrapper (ctx, func_item, print_and_execute_wrapper);
#endif
DEBUG ({
- print_code (gen_ctx, func_item->u.func->machine_code, code_len, func_item->u.func->machine_code);
+ print_code (gen_ctx, func_item->u.func->machine_code, code_len,
+ func_item->u.func->machine_code);
fprintf (debug_file, "code size = %lu:\n", (unsigned long) code_len);
});
_MIR_redirect_thunk (ctx, func_item->addr, func_item->u.func->call_addr);
