summaryrefslogtreecommitdiff
path: root/gcc/cfglayout.c
diff options
context:
space:
mode:
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-24 16:46:32 +0000
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-24 16:46:32 +0000
commit7562ed74219c1160afbc9331b2512062af969495 (patch)
treea8c706cf283c42d5d4e89608fbc473e943519e99 /gcc/cfglayout.c
parent9d138f4752f20f04250a2b44e5cfc9afbc24f3cb (diff)
downloadgcc-7562ed74219c1160afbc9331b2512062af969495.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86495 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfglayout.c')
-rw-r--r--gcc/cfglayout.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/cfglayout.c b/gcc/cfglayout.c
index e99ed6484da..42acec35870 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;