summaryrefslogtreecommitdiff
path: root/gcc/target-globals.c
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2010-07-12 19:04:11 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2010-07-12 19:04:11 +0000
commit22d65d2c5f380476cb0375bfb086d95c4f10b7fb (patch)
tree2c1af71f54de34d009cdd25542919f79c669973b /gcc/target-globals.c
parent049d15fc2288f843235d5cae6bc4b30d95ec51ae (diff)
downloadgcc-22d65d2c5f380476cb0375bfb086d95c4f10b7fb.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162109 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/target-globals.c')
-rw-r--r--gcc/target-globals.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/target-globals.c b/gcc/target-globals.c
index 02aa5d873c1..49b9dc85457 100644
--- a/gcc/target-globals.c
+++ b/gcc/target-globals.c
@@ -39,6 +39,7 @@ along with GCC; see the file COPYING3. If not see
#include "ira-int.h"
#include "builtins.h"
#include "gcse.h"
+#include "bb-reorder.h"
#if SWITCHABLE_TARGET
struct target_globals default_target_globals = {
@@ -54,7 +55,8 @@ struct target_globals default_target_globals = {
&default_target_ira,
&default_target_ira_int,
&default_target_builtins,
- &default_target_gcse
+ &default_target_gcse,
+ &default_target_bb_reorder
};
struct target_globals *
@@ -76,6 +78,7 @@ save_target_globals (void)
g->ira_int = XCNEW (struct target_ira_int);
g->builtins = XCNEW (struct target_builtins);
g->gcse = XCNEW (struct target_gcse);
+ g->bb_reorder = XCNEW (struct target_bb_reorder);
restore_target_globals (g);
target_reinit ();
return g;