]> gcc.gnu.org Git - gcc.git/commit
re PR rtl-optimization/34999 (Incorrect FDE entries with hot/cold code section splitt...
authorJakub Jelinek <jakub@redhat.com>
Fri, 24 Jul 2009 23:30:39 +0000 (01:30 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 24 Jul 2009 23:30:39 +0000 (01:30 +0200)
commit0cf856b72826d6c8888a5570716596242bf2085c
tree4d7bffae2e9b3f41417d6614c1efbdadba7f1d91
parent2a2869d6c57d1186e209d58d2f875e2f3180049e
re PR rtl-optimization/34999 (Incorrect FDE entries with hot/cold code section splitting (partition_hot_cold_basic_blocks))

PR rtl-optimization/34999
* dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
and dw_fde_switched_cold_to_hot fields.
(output_cfi_p): New function.
(output_call_frame_info): If fde->dw_fde_switched_sections,
output 2 FDEs instead of one with corrupted header.
(dwarf2out_do_cfi_startproc): New function.
(dwarf2out_begin_prologue): Use it.  Initialize fde->dw_fde_switch_cfi
and fde->dw_fde_switched_cold_to_hot.
(dwarf2out_switch_text_section): Compute
fde->dw_fde_switched_cold_to_hot.  Switch to new text section here.
If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
Otherwise, compute fde->dw_fde_switch_cfi.

From-SVN: r150069
gcc/ChangeLog
gcc/dwarf2out.c
This page took 0.064567 seconds and 5 git commands to generate.