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/dwarf2out.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc/dwarf2out.c') diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index ff1293f..2a27ad5 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -22152,7 +22152,7 @@ gen_subprogram_die (tree decl, dw_die_ref context_die) struct function *fun = DECL_STRUCT_FUNCTION (decl); - if (!flag_reorder_blocks_and_partition) + if (!crtl->has_bb_partition) { dw_fde_ref fde = fun->fde; if (fde->dw_fde_begin) @@ -26472,7 +26472,7 @@ set_cur_line_info_table (section *sec) { const char *end_label; - if (flag_reorder_blocks_and_partition) + if (crtl->has_bb_partition) { if (in_cold_section_p) end_label = crtl->subsections.cold_section_end_label; @@ -26514,7 +26514,7 @@ dwarf2out_begin_function (tree fun) if (sec != text_section) have_multiple_function_sections = true; - if (flag_reorder_blocks_and_partition && !cold_text_section) + if (crtl->has_bb_partition && !cold_text_section) { gcc_assert (current_function_decl == fun); cold_text_section = unlikely_text_section (); -- cgit v1.1