summaryrefslogtreecommitdiff
path: root/gcc/target-globals.c
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2010-07-12 19:04:03 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2010-07-12 19:04:03 +0000
commit049d15fc2288f843235d5cae6bc4b30d95ec51ae (patch)
tree97f6f506973f488da7ec0448ae53b49404c92688 /gcc/target-globals.c
parentf3c52538c7b8890c49fccde6be7130c9541299b7 (diff)
downloadgcc-049d15fc2288f843235d5cae6bc4b30d95ec51ae.tar.gz
gcc/
* Makefile.in (gcse.o, target-globals.o): Depend on gcse.h.. * gcse.h: New file. * gcse.c: Include gcse.h. (default_target_gcse): New variable. (this_target_gcse): New conditional variable. (can_copy): Redefine as a macro. (can_copy_init_p): New macro. (can_copy_p): Remove can_copy_init_p. * target-globals.h (this_target_gcse): Declare. (target_globals): Add a gcse field. (restore_target_globals): Copy the gcse field to this_target_gcse. * target-globals.c: Include gcse.h. (default_target_globals): Initialize the gcse field. (save_target_globals): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162108 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/target-globals.c')
-rw-r--r--gcc/target-globals.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/target-globals.c b/gcc/target-globals.c
index cca93a53f91..02aa5d873c1 100644
--- a/gcc/target-globals.c
+++ b/gcc/target-globals.c
@@ -38,6 +38,7 @@ along with GCC; see the file COPYING3. If not see
#include "cfgloop.h"
#include "ira-int.h"
#include "builtins.h"
+#include "gcse.h"
#if SWITCHABLE_TARGET
struct target_globals default_target_globals = {
@@ -52,7 +53,8 @@ struct target_globals default_target_globals = {
&default_target_cfgloop,
&default_target_ira,
&default_target_ira_int,
- &default_target_builtins
+ &default_target_builtins,
+ &default_target_gcse
};
struct target_globals *
@@ -73,6 +75,7 @@ save_target_globals (void)
g->ira = XCNEW (struct target_ira);
g->ira_int = XCNEW (struct target_ira_int);
g->builtins = XCNEW (struct target_builtins);
+ g->gcse = XCNEW (struct target_gcse);
restore_target_globals (g);
target_reinit ();
return g;