diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2010-07-12 18:54:35 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2010-07-12 18:54:35 +0000 |
commit | 4bcbfa039316bc3e3f9c43ec1230971935e17290 (patch) | |
tree | c920ed4d7946023638d154dfa81c2b963b87076a /gcc/target-globals.h | |
parent | b6609375319133de3e9a46d3477369482b92f9fa (diff) | |
download | gcc-4bcbfa039316bc3e3f9c43ec1230971935e17290.zip gcc-4bcbfa039316bc3e3f9c43ec1230971935e17290.tar.gz gcc-4bcbfa039316bc3e3f9c43ec1230971935e17290.tar.bz2 |
Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
gcc/
* Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
* optabs.h (target_optabs): New structure.
(default_target_optabs): Declare.
(this_target_optabs): Declare as a variable or define as a macro.
(optab_table, convert_optab_table, direct_optab_table): Redefine
as macros.
* optabs.c (default_target_optabs): New variable.
(this_target_optabs): New conditional variable.
(optab_table, convert_optab_table, direct_optab_table): Delete.
* target-globals.h (this_target_optabs): Declare.
(target_globals): Add a optabs field.
(restore_target_globals): Copy the optabs field to
this_target_optabs.
* target-globals.c: Include expr.h and optabs.h.
(default_target_globals): Initialize the optabs field.
(save_target_globals): Likewise.
From-SVN: r162097
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 45273c4..a1f4866 100644 --- a/gcc/target-globals.h +++ b/gcc/target-globals.h @@ -27,6 +27,7 @@ extern struct target_rtl *this_target_rtl; extern struct target_hard_regs *this_target_hard_regs; extern struct target_reload *this_target_reload; extern struct target_expmed *this_target_expmed; +extern struct target_optabs *this_target_optabs; struct GTY(()) target_globals { struct target_flag_state *GTY((skip)) flag_state; @@ -35,6 +36,7 @@ struct GTY(()) target_globals { struct target_hard_regs *GTY((skip)) hard_regs; struct target_reload *GTY((skip)) reload; struct target_expmed *GTY((skip)) expmed; + struct target_optabs *GTY((skip)) optabs; }; extern struct target_globals default_target_globals; @@ -50,6 +52,7 @@ restore_target_globals (struct target_globals *g) this_target_hard_regs = g->hard_regs; this_target_reload = g->reload; this_target_expmed = g->expmed; + this_target_optabs = g->optabs; } #endif |