diff options
author | Eric Botcazou <ebotcazou@libertysurf.fr> | 2005-10-26 09:03:30 +0200 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2005-10-26 07:03:30 +0000 |
commit | 43f237b43f37cf15bd834e631aa82910cd9a50d8 (patch) | |
tree | 962005b9e688c09f1fafa66ca1b61ef6c984860e /gcc/bb-reorder.c | |
parent | 976e21f67321ad483895471c5f285a1880a47b4a (diff) | |
download | gcc-43f237b43f37cf15bd834e631aa82910cd9a50d8.zip gcc-43f237b43f37cf15bd834e631aa82910cd9a50d8.tar.gz gcc-43f237b43f37cf15bd834e631aa82910cd9a50d8.tar.bz2 |
re PR rtl-optimization/24460 (Profiled bootstrap broken)
PR rtl-optimization/24460
* dwarf2out.c (have_switched_text_sections): New boolean variable.
(dwarf2out_switch_text_section): Set it to true instead of
incrementing separate_line_info_table_in_use.
(output_loc_list): Additionally test have_switched_text_sections.
(output_ranges): Likewise.
(dwarf2out_finish): Likewise.
* varasm.c (assemble_start_function): Do not call
insert_section_boundary_note.
(assemble_end_function): If flag_reorder_blocks_and_partition,
switch to the function's section before emitting the .size directive.
* bb-reorder.c (insert_section_boundary_note): Staticify.
(rest_of_handle_reorder_blocks): Call insert_section_boundary_note.
* output.h (insert_section_boundary_note): Delete.
Co-Authored-By: Caroline Tice <ctice@apple.com>
From-SVN: r105916
Diffstat (limited to 'gcc/bb-reorder.c')
-rw-r--r-- | gcc/bb-reorder.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/bb-reorder.c b/gcc/bb-reorder.c index a142fe2..40d0cdf 100644 --- a/gcc/bb-reorder.c +++ b/gcc/bb-reorder.c @@ -1945,7 +1945,7 @@ reorder_basic_blocks (unsigned int flags) encountering this note will make the compiler switch between the hot and cold text sections. */ -void +static void insert_section_boundary_note (void) { basic_block bb; @@ -2231,6 +2231,9 @@ rest_of_handle_reorder_blocks (void) if (changed && HAVE_conditional_execution) update_life_info (NULL, UPDATE_LIFE_GLOBAL_RM_NOTES, PROP_DEATH_NOTES); + + /* Add NOTE_INSN_SWITCH_TEXT_SECTIONS notes. */ + insert_section_boundary_note (); } struct tree_opt_pass pass_reorder_blocks = |