From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10189 invoked by alias); 24 Jan 2013 12:17:52 -0000 Received: (qmail 10047 invoked by uid 48); 24 Jan 2013 12:17:15 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/56094] Invalid line number info generated with tree-level ivopts Date: Thu, 24 Jan 2013 12:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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: 2013-01/txt/msg02275.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56094 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org, | |rguenth at gcc dot gnu.org --- Comment #3 from Richard Biener 2013-01-24 12:17:14 UTC --- Statements with no location inherit that of the surrounding statements. The issue is that the rewritten statements usually do not exist in literal form in the original program. The final assignment of the result of course should retain use->stmts location. Now what can happen is that the stmts without location are scheduled into the prologue ... not sure how / if we want to avoid this. Jakub? Note I didn't look at the testcase at all.