From 5fb0e246f4d16dd1f341cc34ded11eb4813fe50d Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Mon, 12 Jul 2010 18:53:17 +0000 Subject: Makefile.in (target-globals.o): Depend on $(RTL_H). gcc/ * Makefile.in (target-globals.o): Depend on $(RTL_H). * rtl.h: (target_rtl): New structure. (default_target_rtl): Declare. (this_target_rtl): Declare as a variable or define as a macro. (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx): Redefine as macros. * emit-rtl.c (default_target_rtl): New variable. (this_target_rtl): New conditional variable. (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx) (return_address_pointer_rtx): Delete. (initial_regno_reg_rtx): New macro. (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx. (init_emit_regs): Likewise. * target-globals.h (this_target_rtl): Declare. (target_globals): Add a rtl field. (restore_target_globals): Copy the rtl field to this_target_rtl. * target-globals.c: Include rtl.h. (default_target_globals): Initialize the rtl field. (save_target_globals): Likewise. From-SVN: r162088 --- 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 a733aa5..f8db59c 100644 --- a/gcc/target-globals.h +++ b/gcc/target-globals.h @@ -23,10 +23,12 @@ 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; +extern struct target_rtl *this_target_rtl; struct GTY(()) target_globals { struct target_flag_state *GTY((skip)) flag_state; struct target_regs *GTY((skip)) regs; + struct target_rtl *rtl; }; extern struct target_globals default_target_globals; @@ -38,6 +40,7 @@ restore_target_globals (struct target_globals *g) { this_target_flag_state = g->flag_state; this_target_regs = g->regs; + this_target_rtl = g->rtl; } #endif -- cgit v1.1