aboutsummaryrefslogtreecommitdiff
path: root/gcc/target-globals.h
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2010-07-12 19:04:03 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2010-07-12 19:04:03 +0000
commit7c6811fe1e7b07f9ab3ea30d76e615b33ae6a783 (patch)
tree97f6f506973f488da7ec0448ae53b49404c92688 /gcc/target-globals.h
parent15e7b94f185a0eb2cb8a0b0fbf4c8d3025f1b40d (diff)
downloadgcc-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.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 a0cf737..cdad708 100644
--- a/gcc/target-globals.h
+++ b/gcc/target-globals.h
@@ -33,6 +33,7 @@ extern struct target_cfgloop *this_target_cfgloop;
extern struct target_ira *this_target_ira;
extern struct target_ira_int *this_target_ira_int;
extern struct target_builtins *this_target_builtins;
+extern struct target_gcse *this_target_gcse;
struct GTY(()) target_globals {
struct target_flag_state *GTY((skip)) flag_state;
@@ -47,6 +48,7 @@ struct GTY(()) target_globals {
struct target_ira *GTY((skip)) ira;
struct target_ira_int *GTY((skip)) ira_int;
struct target_builtins *GTY((skip)) builtins;
+ struct target_gcse *GTY((skip)) gcse;
};
extern struct target_globals default_target_globals;
@@ -68,6 +70,7 @@ restore_target_globals (struct target_globals *g)
this_target_ira = g->ira;
this_target_ira_int = g->ira_int;
this_target_builtins = g->builtins;
+ this_target_gcse = g->gcse;
}
#endif