diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2010-07-12 18:53:17 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2010-07-12 18:53:17 +0000 |
commit | 5fb0e246f4d16dd1f341cc34ded11eb4813fe50d (patch) | |
tree | cafe482a7a09e052682a76fb7e607508ee8298a3 /gcc/target-globals.h | |
parent | 939dcd0d38af0571a15f1bcff788d593ed33d5eb (diff) | |
download | gcc-5fb0e246f4d16dd1f341cc34ded11eb4813fe50d.tar.gz |
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
Diffstat (limited to 'gcc/target-globals.h')
-rw-r--r-- | gcc/target-globals.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/target-globals.h b/gcc/target-globals.h index a733aa52b89..f8db59c1827 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 |