+2009-01-19 Vladimir Makarov <vmakarov@redhat.com>
+
+ PR c/38869
+ * rtl.h (reinit_regs): New prototype.
+ * regclass.c: Include ira.h.
+ (reinit_regs): New.
+ * Makefile.in (regclass.o): Add ira.h.
+ * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
+
2009-01-18 H.J. Lu <hongjiu.lu@intel.com>
PR target/38736
hard-reg-set.h $(FLAGS_H) $(BASIC_BLOCK_H) addresses.h $(REGS_H) insn-config.h \
$(RECOG_H) reload.h $(REAL_H) $(TOPLEV_H) $(FUNCTION_H) output.h $(GGC_H) \
$(TM_P_H) $(EXPR_H) $(TIMEVAR_H) gt-regclass.h $(HASHTAB_H) \
- $(TARGET_H) tree-pass.h $(DF_H)
+ $(TARGET_H) tree-pass.h $(DF_H) ira.h
local-alloc.o : local-alloc.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
$(RTL_H) $(FLAGS_H) $(REGS_H) hard-reg-set.h insn-config.h $(RECOG_H) \
output.h $(FUNCTION_H) $(INSN_ATTR_H) $(TOPLEV_H) except.h reload.h $(TM_P_H) \
{
if (TARGET_64BIT &&
call_used_regs[4 /*RSI*/] == (cfun->machine->call_abi == MS_ABI))
- init_regs ();
+ reinit_regs ();
}
/* Initialize a variable CUM of type CUMULATIVE_ARGS
#include "target.h"
#include "tree-pass.h"
#include "df.h"
+#include "ira.h"
/* Maximum register number used in this function, plus one. */
init_reg_autoinc ();
}
+/* The same as previous function plus initializing IRA if it is
+ necessary. */
+void
+reinit_regs (void)
+{
+ init_regs ();
+
+ if (flag_ira)
+ ira_init ();
+}
+
/* Initialize some fake stack-frame MEM references for use in
memory_move_secondary_cost. */
extern void globalize_reg (int);
extern void init_reg_modes_target (void);
extern void init_regs (void);
+extern void reinit_regs (void);
extern void init_fake_stack_mems (void);
extern void save_register_info (void);
extern void init_reg_sets (void);