From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21345 invoked by alias); 6 Nov 2012 09:46:37 -0000 Received: (qmail 20480 invoked by uid 48); 6 Nov 2012 09:46:07 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/54693] VTA guality issues with loops Date: Tue, 06 Nov 2012 09:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: REOPENED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: aoliva at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Status Resolution 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: 2012-11/txt/msg00463.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54693 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #16 from Jakub Jelinek 2012-11-06 09:45:58 UTC --- Not completely. Apparently the new testcase fails on both x86_64-linux and i686-linux with -O1 -g. The reason for that is that with -O1 jump threading isn't performed, and the bb duplication is done in tree-ssa-loop-ch.c instead. So, I'd say we want to do something similar to what propagate_threaded_block_debug_into does, in copy_loop_headers or so, on copied_bbs, copying debug stmts into the loop body (exit->dest before the gimple_duplicate_sese_region call). Calling p propagate_threaded_block_debug_into (exit->dest, entry->dest) from the debugger fixed the testcase for -O1 -g.