aboutsummaryrefslogtreecommitdiff
path: root/gcc/target-globals.c
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.c
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.c')
-rw-r--r--gcc/target-globals.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/target-globals.c b/gcc/target-globals.c
index 5934ad9..cfabb87 100644
--- a/gcc/target-globals.c
+++ b/gcc/target-globals.c
@@ -32,6 +32,8 @@ along with GCC; see the file COPYING3. If not see
#include "hard-reg-set.h"
#include "reload.h"
#include "expmed.h"
+#include "expr.h"
+#include "optabs.h"
#if SWITCHABLE_TARGET
struct target_globals default_target_globals = {
@@ -40,7 +42,8 @@ struct target_globals default_target_globals = {
&default_target_rtl,
&default_target_hard_regs,
&default_target_reload,
- &default_target_expmed
+ &default_target_expmed,
+ &default_target_optabs
};
struct target_globals *
@@ -55,6 +58,7 @@ save_target_globals (void)
g->hard_regs = XCNEW (struct target_hard_regs);
g->reload = XCNEW (struct target_reload);
g->expmed = XCNEW (struct target_expmed);
+ g->optabs = XCNEW (struct target_optabs);
restore_target_globals (g);
target_reinit ();
return g;