diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2010-07-12 19:04:03 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2010-07-12 19:04:03 +0000 |
commit | 7c6811fe1e7b07f9ab3ea30d76e615b33ae6a783 (patch) | |
tree | 97f6f506973f488da7ec0448ae53b49404c92688 /gcc/target-globals.c | |
parent | 15e7b94f185a0eb2cb8a0b0fbf4c8d3025f1b40d (diff) | |
download | gcc-7c6811fe1e7b07f9ab3ea30d76e615b33ae6a783.zip gcc-7c6811fe1e7b07f9ab3ea30d76e615b33ae6a783.tar.gz gcc-7c6811fe1e7b07f9ab3ea30d76e615b33ae6a783.tar.bz2 |
Makefile.in (gcse.o, [...]): Depend on gcse.h..
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.
From-SVN: r162108
Diffstat (limited to 'gcc/target-globals.c')
-rw-r--r-- | gcc/target-globals.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/target-globals.c b/gcc/target-globals.c index cca93a5..02aa5d8 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; |