diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2017-06-08 16:23:43 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2017-06-08 14:23:43 +0000 |
commit | 0b6bc904227e2dae47f178e4d5468931669df197 (patch) | |
tree | e7bbda0646d5e5eead946cd91b6a15bf7a0e2862 /gcc/varasm.c | |
parent | 1ac644c8d04230fd1be85de1b102a819c11c87bd (diff) | |
download | gcc-0b6bc904227e2dae47f178e4d5468931669df197.zip gcc-0b6bc904227e2dae47f178e4d5468931669df197.tar.gz gcc-0b6bc904227e2dae47f178e4d5468931669df197.tar.bz2 |
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
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r-- | gcc/varasm.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c index 096871d..fbaebc1 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -1670,10 +1670,6 @@ decide_function_section (tree decl) { first_function_block_is_cold = false; - if (flag_reorder_blocks_and_partition) - /* We will decide in assemble_start_function. */ - return; - if (DECL_SECTION_NAME (decl)) { struct cgraph_node *node = cgraph_node::get (current_function_decl); @@ -1711,7 +1707,7 @@ assemble_start_function (tree decl, const char *fnname) char tmp_label[100]; bool hot_label_written = false; - if (flag_reorder_blocks_and_partition) + if (crtl->has_bb_partition) { ASM_GENERATE_INTERNAL_LABEL (tmp_label, "LHOTB", const_labelno); crtl->subsections.hot_section_label = ggc_strdup (tmp_label); @@ -1746,7 +1742,7 @@ assemble_start_function (tree decl, const char *fnname) has both hot and cold sections, because we don't want to re-set the alignment when the section switch happens mid-function. */ - if (flag_reorder_blocks_and_partition) + if (crtl->has_bb_partition) { first_function_block_is_cold = false; @@ -1773,8 +1769,7 @@ assemble_start_function (tree decl, const char *fnname) /* Switch to the correct text section for the start of the function. */ switch_to_section (function_section (decl)); - if (flag_reorder_blocks_and_partition - && !hot_label_written) + if (crtl->has_bb_partition && !hot_label_written) ASM_OUTPUT_LABEL (asm_out_file, crtl->subsections.hot_section_label); /* Tell assembler to move to target machine's alignment for functions. */ @@ -1850,7 +1845,7 @@ assemble_end_function (tree decl, const char *fnname ATTRIBUTE_UNUSED) { #ifdef ASM_DECLARE_FUNCTION_SIZE /* We could have switched section in the middle of the function. */ - if (flag_reorder_blocks_and_partition) + if (crtl->has_bb_partition) switch_to_section (function_section (decl)); ASM_DECLARE_FUNCTION_SIZE (asm_out_file, fnname, decl); #endif @@ -1861,7 +1856,7 @@ assemble_end_function (tree decl, const char *fnname ATTRIBUTE_UNUSED) } /* Output labels for end of hot/cold text sections (to be used by debug info.) */ - if (flag_reorder_blocks_and_partition) + if (crtl->has_bb_partition) { section *save_text_section; |