From 939dcd0d38af0571a15f1bcff788d593ed33d5eb Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Mon, 12 Jul 2010 18:53:08 +0000 Subject: Makefile.in (target-globals.o): Depend on $(REGS_H). gcc/ * Makefile.in (target-globals.o): Depend on $(REGS_H). * regs.h (target_reg_modes): New structure. (default_target_reg_modes): Declare. (this_target_reg_modes): Declare as a variable or define as a macro. (hard_regno_nregs, reg_raw_mode): Redefine as macros. * reginfo.c (default_target_reg_modes): New variable. (this_target_reg_modes): New conditional variable. (hard_regno_nregs, reg_raw_mode): Delete. * target-globals.h (this_target_regs): Declare. (target_globals): Add a regs field. (restore_target_globals): Copy the regs field to this_target_regs. * target-globals.c: Include regs.h. (default_target_globals): Initialize the regs field. (save_target_globals): Likewise. From-SVN: r162087 --- gcc/target-globals.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/target-globals.h') diff --git a/gcc/target-globals.h b/gcc/target-globals.h index 496a507..a733aa5 100644 --- a/gcc/target-globals.h +++ b/gcc/target-globals.h @@ -22,9 +22,11 @@ along with GCC; see the file COPYING3. If not see #if SWITCHABLE_TARGET extern struct target_flag_state *this_target_flag_state; +extern struct target_regs *this_target_regs; struct GTY(()) target_globals { struct target_flag_state *GTY((skip)) flag_state; + struct target_regs *GTY((skip)) regs; }; extern struct target_globals default_target_globals; @@ -35,6 +37,7 @@ static inline void restore_target_globals (struct target_globals *g) { this_target_flag_state = g->flag_state; + this_target_regs = g->regs; } #endif -- cgit v1.1