aboutsummaryrefslogtreecommitdiff
path: root/gcc/target-globals.h
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2010-07-12 18:53:59 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2010-07-12 18:53:59 +0000
commitd474db84488c71868483429070d545811adbc677 (patch)
tree81833811781814bd7dc33b609cd55e47bc56fc7e /gcc/target-globals.h
parent7bf84454ff6670c4e44561dc3f1de0b2eaa011fa (diff)
downloadgcc-d474db84488c71868483429070d545811adbc677.zip
gcc-d474db84488c71868483429070d545811adbc677.tar.gz
gcc-d474db84488c71868483429070d545811adbc677.tar.bz2
Makefile.in (target-globals.o): Depend on reload.h.
gcc/ * Makefile.in (target-globals.o): Depend on reload.h. * reload.h (target_reload): New structure. (default_target_reload): Declare. (this_target_reload): Declare as a variable or define as a macro. (indirect_symref_ok, double_reg_address_ok): Redefine as macros. * reload1.c (default_target_reload): New variable (this_target_reload): New conditional variable. (indirect_symref_ok, double_reg_address_ok): Delete. (spill_indirect_levels): Redefine as a macro. * target-globals.h (this_target_reload): Declare. (target_globals): Add a reload field. (restore_target_globals): Copy the reload field to this_target_reload. * target-globals.c: Include hard-reg-set.h. (default_target_globals): Initialize the reload field. (save_target_globals): Likewise. From-SVN: r162093
Diffstat (limited to 'gcc/target-globals.h')
-rw-r--r--gcc/target-globals.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/target-globals.h b/gcc/target-globals.h
index 913c512..677aa94 100644
--- a/gcc/target-globals.h
+++ b/gcc/target-globals.h
@@ -25,12 +25,14 @@ extern struct target_flag_state *this_target_flag_state;
extern struct target_regs *this_target_regs;
extern struct target_rtl *this_target_rtl;
extern struct target_hard_regs *this_target_hard_regs;
+extern struct target_reload *this_target_reload;
struct GTY(()) target_globals {
struct target_flag_state *GTY((skip)) flag_state;
struct target_regs *GTY((skip)) regs;
struct target_rtl *rtl;
struct target_hard_regs *GTY((skip)) hard_regs;
+ struct target_reload *GTY((skip)) reload;
};
extern struct target_globals default_target_globals;
@@ -44,6 +46,7 @@ restore_target_globals (struct target_globals *g)
this_target_regs = g->regs;
this_target_rtl = g->rtl;
this_target_hard_regs = g->hard_regs;
+ this_target_reload = g->reload;
}
#endif