* final.c (final_scan_insn): Flip in_cold_section_p when changing
between the hot and cold sections. Use current_function_section to get the new section. * dwarf2out.c (output_line_info): Use in_cold_section_p to determine whether we are assembling hot or cold code. (secname_for_decl, dwarf2out_var_location): Likewise. (dwarf2out_init, dwarf2out_finish): Use switch_to_section. * varasm.c (last_text_section): Delete. (in_cold_section_p): New variable. (hot_function_section): New function. (current_function_section): Pass in_cold_section_p as the reloc argument to select_section. Use it to decide between unlikely_function_section and hot_function_section. (assemble_start_function): Use switch_to_section. Set in_cold_section_p instead of last_text_section. (assemble_end_function): Use switch_to_section. (switch_to_section): Don't set last_text_section. * config/darwin/darwin.c (machopic_select_section): Trust the reloc argument to make the right choice between hot and cold sections. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108572 138bc75d-0d04-0410-961f-82ee72b054a4
Showing
- gcc/ChangeLog 22 additions, 0 deletionsgcc/ChangeLog
- gcc/config/darwin.c 1 addition, 3 deletionsgcc/config/darwin.c
- gcc/dwarf2out.c 5 additions, 5 deletionsgcc/dwarf2out.c
- gcc/final.c 3 additions, 16 deletionsgcc/final.c
- gcc/output.h 1 addition, 1 deletiongcc/output.h
- gcc/varasm.c 29 additions, 25 deletionsgcc/varasm.c
Loading
Please register or sign in to comment