From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31273 invoked by alias); 13 Jun 2013 02:07:20 -0000 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 Received: (qmail 31190 invoked by uid 55); 13 Jun 2013 02:07:11 -0000 From: "tejohnson at google dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/57451] Incorrect debug ranges emitted for -freorder-blocks-and-partition -g Date: Thu, 13 Jun 2013 02:07:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tejohnson at google dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-06/txt/msg00659.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57451 --- Comment #3 from Teresa Johnson --- Yes, there is a NOTE_INSN_SWITCH_TEXT_SECTIONS note emitted for functions that are split. In the attached test case the symbol-symbol expression is being generated across the split boundary of main(), and I confirmed that the NOTE is there in between the hot/cold sections. Thanks, Teresa On Wed, Jun 12, 2013 at 10:08 AM, ccoutant at gcc dot gnu.org < gcc-bugzilla@gcc.gnu.org> wrote: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57451 > > Cary Coutant changed: > > What |Removed |Added > > ---------------------------------------------------------------------------- > CC| |ccoutant at gcc dot > gnu.org > > --- Comment #2 from Cary Coutant --- > I'll take a look, but at first glance it looks like > have_multiple_function_sections isn't being set in dwarf2out.c, which > leads it > to assume that it can use "symbol - symbol" expressions in the range lists. > > That flag is set by the switch_text_section hook, which is called from > final_scan_insn when it sees a NOTE_INSN_SWITCH_TEXT_SECTIONS insn. When > -freorder-blocks-and-partitions is turned on, is such a NOTE being emitted? > > -- > You are receiving this mail because: > You are on the CC list for the bug. > You reported the bug. >