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.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/target-globals.h') 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 -- cgit v1.1