summaryrefslogtreecommitdiff
path: root/gcc/target-globals.h
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2010-07-12 19:04:11 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2010-07-12 19:04:11 +0000
commit76ee381a9c92e5ef9448ff24aa6c82703c2561c8 (patch)
tree2c1af71f54de34d009cdd25542919f79c669973b /gcc/target-globals.h
parent7c6811fe1e7b07f9ab3ea30d76e615b33ae6a783 (diff)
downloadgcc-76ee381a9c92e5ef9448ff24aa6c82703c2561c8.tar.gz
Makefile.in (bb-reorder.o, [...]): Depend on bb-reorder.h
gcc/ * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h * bb-reorder.h: New file. * bb-reorder.c (default_target_bb_reorder): New variable. (this_target_bb_reorder): New conditional variable. (uncond_jump_length): Redefine as a macro. * target-globals.h (this_target_bb_reorder): Declare. (target_globals): Add a bb_reorder field. (restore_target_globals): Copy the bb_reorder field to this_target_bb-reorder. * target-globals.c: Include bb-reorder.h. (default_target_globals): Initialize the bb_reorder field. (save_target_globals): Likewise. From-SVN: r162109
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 cdad7085e9a..166f21ada4f 100644
--- a/gcc/target-globals.h
+++ b/gcc/target-globals.h
@@ -34,6 +34,7 @@ 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;
+extern struct target_bb_reorder *this_target_bb_reorder;
struct GTY(()) target_globals {
struct target_flag_state *GTY((skip)) flag_state;
@@ -49,6 +50,7 @@ struct GTY(()) target_globals {
struct target_ira_int *GTY((skip)) ira_int;
struct target_builtins *GTY((skip)) builtins;
struct target_gcse *GTY((skip)) gcse;
+ struct target_bb_reorder *GTY((skip)) bb_reorder;
};
extern struct target_globals default_target_globals;
@@ -71,6 +73,7 @@ restore_target_globals (struct target_globals *g)
this_target_ira_int = g->ira_int;
this_target_builtins = g->builtins;
this_target_gcse = g->gcse;
+ this_target_bb_reorder = g->bb_reorder;
}
#endif