diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-15 12:40:33 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-15 12:40:33 +0000 |
commit | 5fbee89dd6b86ae3be1c36fc6e0c361d0c85e9de (patch) | |
tree | f594f73f80f290828e87bb828d14e3f19d1ad80e /gcc/config/darwin.c | |
parent | 4f240804b0bb9c7621269a96fde5c1d1b4f3b0bf (diff) | |
download | gcc-5fbee89dd6b86ae3be1c36fc6e0c361d0c85e9de.tar.gz |
* 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
Diffstat (limited to 'gcc/config/darwin.c')
-rw-r--r-- | gcc/config/darwin.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index badc0d388fe..930e6cd16cd 100644 --- a/gcc/config/darwin.c +++ b/gcc/config/darwin.c @@ -1093,9 +1093,7 @@ machopic_select_section (tree exp, int reloc, if (TREE_CODE (exp) == FUNCTION_DECL) { - if (reloc == 1 - || unlikely_text_section_p (last_text_section) - || last_text_section == text_unlikely_coal_section) + if (reloc == 1) base_section = (weak_p ? text_unlikely_coal_section : unlikely_text_section ()); |