This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PR58315] reset inlined debug vars at return-to point
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: Richard Biener <richard dot guenther at gmail dot com>
- Cc: Jakub Jelinek <jakub at redhat dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 26 Feb 2015 13:46:12 -0300
- Subject: Re: [PR58315] reset inlined debug vars at return-to point
- Authentication-results: sourceware.org; auth=none
- References: <orlhjm2usl dot fsf at livre dot home> <CAFiYyc1a+cMHKk-dAJ3SbErhDotEGFRekK=xBy+DbHpFpZWE2g at mail dot gmail dot com> <20150225161256 dot GT1746 at tucnak dot redhat dot com> <or7fv53d3m dot fsf at livre dot home> <20150225212231 dot GX1746 at tucnak dot redhat dot com> <ortwy91qyi dot fsf at livre dot home> <CAFiYyc16cJOfeS=TyurCx_x50keHergEgxGT4AcGa9owQnHK-Q at mail dot gmail dot com> <20150226104241 dot GB1746 at tucnak dot redhat dot com> <CAFiYyc3eXPvaYE+S-FoYNZ9P5GmH1-R7RFmy2Hju6VGvmaOBiw at mail dot gmail dot com>
On Feb 26, 2015, Richard Biener <richard.guenther@gmail.com> 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