From 7c6811fe1e7b07f9ab3ea30d76e615b33ae6a783 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Mon, 12 Jul 2010 19:04:03 +0000 Subject: 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 --- gcc/target-globals.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gcc/target-globals.c') 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; -- cgit v1.1