Re: [PATCH] Fix PR87440, extra lexical block in inline instances

2018-09-27 Thread Jason Merrill
On Thu, Sep 27, 2018 at 3:28 AM, Richard Biener wrote: > On Wed, 26 Sep 2018, Jason Merrill wrote: > >> On Wed, Sep 26, 2018 at 9:35 AM, Richard Biener wrote: >> > >> > We do not create a DW_AT_lexical_block for the outermost block in >> > functions but we do for DW_AT_inlined_subroutines. That

Re: [PATCH] Fix PR87440, extra lexical block in inline instances

2018-09-27 Thread Richard Biener
On Wed, 26 Sep 2018, Jason Merrill wrote: > On Wed, Sep 26, 2018 at 9:35 AM, Richard Biener wrote: > > > > We do not create a DW_AT_lexical_block for the outermost block in > > functions but we do for DW_AT_inlined_subroutines. That makes > > debuginfo look like if there were two of each local,

Re: [PATCH] Fix PR87440, extra lexical block in inline instances

2018-09-26 Thread Jason Merrill
On Wed, Sep 26, 2018 at 9:35 AM, Richard Biener wrote: > > We do not create a DW_AT_lexical_block for the outermost block in > functions but we do for DW_AT_inlined_subroutines. That makes > debuginfo look like if there were two of each local, the outer > one (from the abstract instance) optimize

[PATCH] Fix PR87440, extra lexical block in inline instances

2018-09-26 Thread Richard Biener
We do not create a DW_AT_lexical_block for the outermost block in functions but we do for DW_AT_inlined_subroutines. That makes debuginfo look like if there were two of each local, the outer one (from the abstract instance) optimized out (visible via info locals in gdb). The following elides th