From 0b6bc904227e2dae47f178e4d5468931669df197 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Thu, 8 Jun 2017 16:23:43 +0200 Subject: cfgrtl.c (cfg_layout_initialize): Check crtl->has_bb_partition instead of flag_reorder_blocks_and_partition. * cfgrtl.c (cfg_layout_initialize): Check crtl->has_bb_partition instead of flag_reorder_blocks_and_partition. * dbxout.c (dbxout_function_end): Likewise. * dwarf2out.c (gen_subprogram_die): Likewise. * haifa-sched.c (sched_create_recovery_edges): Likewise. * hw-doloop.c (reorg_loops): Likewise. * varasm.c (assemble_start_function, assemble_end_function): Likewise. (decide_function_section): Do not check for flag_reorder_blocks_and_partition. From-SVN: r249017 --- gcc/haifa-sched.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gcc/haifa-sched.c') diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c index 1fcc01d..9632a6d 100644 --- a/gcc/haifa-sched.c +++ b/gcc/haifa-sched.c @@ -8313,8 +8313,7 @@ sched_create_recovery_edges (basic_block first_bb, basic_block rec, /* Partition type is the same, if it is "unpartitioned". */ { /* Rewritten from cfgrtl.c. */ - if (flag_reorder_blocks_and_partition - && targetm_common.have_named_sections) + if (crtl->has_bb_partition && targetm_common.have_named_sections) { /* We don't need the same note for the check because any_condjump_p (check) == true. */ -- cgit v1.1