From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 104421 invoked by alias); 26 Feb 2015 16:46:35 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 104400 invoked by uid 89); 26 Feb 2015 16:46:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 26 Feb 2015 16:46:33 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t1QGkUSr029387 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 26 Feb 2015 11:46:31 -0500 Received: from freie.home (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t1QGkSsV024500 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 26 Feb 2015 11:46:30 -0500 Received: from livre.home (livre.home [172.31.160.2]) by freie.home (8.14.8/8.14.8) with ESMTP id t1QGkCC8017559; Thu, 26 Feb 2015 13:46:14 -0300 From: Alexandre Oliva To: Richard Biener Cc: Jakub Jelinek , GCC Patches Subject: Re: [PR58315] reset inlined debug vars at return-to point References: <20150225161256.GT1746@tucnak.redhat.com> <20150225212231.GX1746@tucnak.redhat.com> <20150226104241.GB1746@tucnak.redhat.com> Date: Thu, 26 Feb 2015 17:13:00 -0000 In-Reply-To: (Richard Biener's message of "Thu, 26 Feb 2015 11:59:02 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2015-02/txt/msg01631.txt.bz2 On Feb 26, 2015, Richard Biener wrote: > After all if the inliner inserts resets just for vars that already > have debug stmts then I cook up a testcase where those debug stmts > only appear after inlining. Please try that. Hint: the actual requirement is that the VTA-trackable var has been remapped during inlining of executable code. Its having debug stmts is a consequence of its being there. I wonder, thus, how the compiler would bring a var that hadn't even been remapped back from the dead, so as to introduce a debug stmt for it. Tough! :-) > Indeed if we want to be as close to the source as possible we should > insert debug stmts from the start (where the values are still computed) > so that code-motion will simply make it unavailable (and also reset > locations so you don't get gdb jumping around). *nod* Statement frontiers notes are a proposed solution for the jumping around and eliminating code motion issues from debug info. -- Alexandre Oliva, freedom fighter http://FSFLA.org/~lxoliva/ You must be the change you wish to see in the world. -- Gandhi Be Free! -- http://FSFLA.org/ FSF Latin America board member Free Software Evangelist|Red Hat Brasil GNU Toolchain Engineer