diff options
Diffstat (limited to 'gcc/cfglayout.c')
-rw-r--r-- | gcc/cfglayout.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cfglayout.c b/gcc/cfglayout.c index b805ae5..0cf7d8e 100644 --- a/gcc/cfglayout.c +++ b/gcc/cfglayout.c @@ -795,7 +795,8 @@ 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; - if (flag_reorder_blocks_and_partition) + if (flag_reorder_blocks_and_partition + && targetm.have_named_sections) { if (bb->pred->src->partition == COLD_PARTITION) { @@ -1107,6 +1108,7 @@ cfg_layout_duplicate_bb (basic_block bb) insn ? get_last_insn () : NULL, EXIT_BLOCK_PTR->prev_bb); + new_bb->partition = bb->partition; if (bb->rbi->header) { insn = bb->rbi->header; |