[Adjustments to make ira-compress-live-ranges code compile in a gcc-4.7 code base ] gcc/ 2012-10-14 Mikael Pettersson * ira-build.c: Move tree nodes vector definitions above their first reference. Partial backport from mainline r187288: 2012-05-08 Michael Matz * basic-block.h (enum bb_flags): New BB_VISITED flag. --- gcc-4.7.2/gcc/basic-block.h.~1~ 2012-08-06 16:34:27.000000000 +0200 +++ gcc-4.7.2/gcc/basic-block.h 2012-10-14 12:50:09.000000000 +0200 @@ -261,7 +261,10 @@ enum bb_flags /* Set on blocks that are in a transaction. This is calculated on demand, and is available after calling compute_transaction_bits(). */ - BB_IN_TRANSACTION = 1 << 13 + BB_IN_TRANSACTION = 1 << 13, + + /* A general visted flag for passes to use. */ + BB_VISITED = 1 << 14 }; /* Dummy flag for convenience in the hot/cold partitioning code. */ --- gcc-4.7.2/gcc/ira-build.c.~1~ 2012-10-14 11:59:47.000000000 +0200 +++ gcc-4.7.2/gcc/ira-build.c 2012-10-14 12:23:54.000000000 +0200 @@ -1457,6 +1457,10 @@ finish_cost_vectors (void) +/* Definition of vector of loop tree nodes. */ +DEF_VEC_P(ira_loop_tree_node_t); +DEF_VEC_ALLOC_P(ira_loop_tree_node_t, heap); + /* Compute a post-ordering of the reverse control flow of the loop body designated by the children nodes of LOOP_NODE, whose body nodes in pre-order are input as LOOP_PREORDER. Return a VEC with a post-order @@ -2091,10 +2095,6 @@ mark_all_loops_for_removal (void) } } -/* Definition of vector of loop tree nodes. */ -DEF_VEC_P(ira_loop_tree_node_t); -DEF_VEC_ALLOC_P(ira_loop_tree_node_t, heap); - /* Vec containing references to all removed loop tree nodes. */ static VEC(ira_loop_tree_node_t,heap) *removed_loop_vec;