From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15863 invoked by alias); 24 Jul 2009 23:31:16 -0000 Received: (qmail 15801 invoked by alias); 24 Jul 2009 23:30:59 -0000 Date: Fri, 24 Jul 2009 23:31:00 -0000 Message-ID: <20090724233059.15800.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug rtl-optimization/34999] Incorrect FDE entries with hot/cold code section splitting (partition_hot_cold_basic_blocks) In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jakub at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-07/txt/msg02036.txt.bz2 ------- Comment #25 from jakub at gcc dot gnu dot org 2009-07-24 23:30 ------- Subject: Bug 34999 Author: jakub Date: Fri Jul 24 23:30:39 2009 New Revision: 150069 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150069 Log: 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. Modified: trunk/gcc/ChangeLog trunk/gcc/dwarf2out.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34999