aboutsummaryrefslogtreecommitdiff
path: root/gcc/target-globals.h
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2010-07-12 18:54:35 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2010-07-12 18:54:35 +0000
commit4bcbfa039316bc3e3f9c43ec1230971935e17290 (patch)
treec920ed4d7946023638d154dfa81c2b963b87076a /gcc/target-globals.h
parentb6609375319133de3e9a46d3477369482b92f9fa (diff)
downloadgcc-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.h3
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