re PR c/38869 (valgrind find problem with -O -mtune=generic)

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.

From-SVN: r143498
This commit is contained in:
Vladimir Makarov 2009-01-19 17:17:14 +00:00 committed by Vladimir Makarov
parent be12c33aa4
commit f68211cd04
5 changed files with 24 additions and 2 deletions

View File

@ -1,3 +1,12 @@
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

View File

@ -2848,7 +2848,7 @@ regclass.o : regclass.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
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) \

View File

@ -4624,7 +4624,7 @@ ix86_maybe_switch_abi (void)
{
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

View File

@ -49,6 +49,7 @@ along with GCC; see the file COPYING3. If not see
#include "target.h"
#include "tree-pass.h"
#include "df.h"
#include "ira.h"
/* Maximum register number used in this function, plus one. */
@ -740,6 +741,17 @@ init_regs (void)
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. */

View File

@ -2230,6 +2230,7 @@ extern int reg_class_subset_p (enum reg_class, enum reg_class);
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);