From 076c7ab896de2d7f85e2b8b5771c599b7d01dea2 Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Tue, 24 Aug 2004 16:46:32 +0000 Subject: basic-block.h (struct basic_block_def): Reorder fields to eliminate interior padding. * basic-block.h (struct basic_block_def): Reorder fields to eliminate interior padding. Remove 'partition' field. (BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION) (BB_UNPARTITIONED, BB_PARTITION, BB_SET_PARTITION) (BB_COPY_PARTITION): New macros. * bb-reorder.c, cfgcleanup.c, cfglayout.c, cfgrtl.c, ifcvt.c Replace all references to the 'partition' field of a basic block with new macros. * insn-notes.def: Delete NOTE_INSN_DISABLE_SCHED_OF_BLOCK. * final.c (final_scan_insn): Don't handle it. * modulo-sched.c: Set BB_DISABLE_SCHEDULE flag on g->bb instead of emitting a NOTE_INSN_DISABLE_SCHED_OF_BLOCK note. * sched-rgn.c (sched_is_disabled_for_current_region_p): Look for a BB_DISABLE_SCHEDULE flag on the block instead of a note. From-SVN: r86495 --- gcc/cfglayout.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc/cfglayout.c') diff --git a/gcc/cfglayout.c b/gcc/cfglayout.c index e99ed64..42acec3 100644 --- a/gcc/cfglayout.c +++ b/gcc/cfglayout.c @@ -795,11 +795,11 @@ fixup_reorder_chain (void) /* Make sure new bb is tagged for correct section (same as fall-thru source). */ - e_fall->src->partition = bb->pred->src->partition; + BB_COPY_PARTITION (e_fall->src, bb->pred->src); if (flag_reorder_blocks_and_partition && targetm.have_named_sections) { - if (bb->pred->src->partition == COLD_PARTITION) + if (BB_PARTITION (bb->pred->src) == BB_COLD_PARTITION) { rtx new_note; rtx note = BB_HEAD (e_fall->src); @@ -1109,7 +1109,7 @@ cfg_layout_duplicate_bb (basic_block bb) insn ? get_last_insn () : NULL, EXIT_BLOCK_PTR->prev_bb); - new_bb->partition = bb->partition; + BB_COPY_PARTITION (new_bb, bb); if (bb->rbi->header) { insn = bb->rbi->header; -- cgit v1.1