On Thu, Nov 22, 2018 at 2:34 PM Jakub Jelinek <ja...@redhat.com> wrote: > > On Thu, Nov 22, 2018 at 01:30:03PM +0000, Michael Matz wrote: > > On Wed, 21 Nov 2018, Richard Biener wrote: > > > > > then this leads to wrong debug info showing a value for 'a' that never > > > existed. > > > > var-tracking was specifically created so that the base-vars of SSA names > > aren't necessary for debug info anymore ... > > Not to my knowledge. The original var-tracking used that information > almost exclusively (whatever ends up in REG_EXPR/MEM_EXPR and that is based > on the base vars of SSA_NAMEs). > VTA doesn't need that for vars for which there are debug stmts, but > otherwise it is still used.
Also it still uses it even for vars for which there are debug stmts, no? We just happen to be lucky for the too simple testcase that only the correct values survive for the very few $pc addresses? Richard. > Jakub