Re: [PATCH] debug/108772 - ICE with late debug generated with -flto

2023-03-11 Thread Jeff Law via Gcc-patches
On 3/1/23 06:07, Richard Biener via Gcc-patches wrote: When combining -g1 with -flto we run into the DIE location annotation machinery for globals calling dwarf2out_late_global_decl but not having any early generated DIE for function scope statics. In this process we'd generate a limbo DIE

Re: [PATCH] debug/108772 - ICE with late debug generated with -flto

2023-03-02 Thread Jason Merrill via Gcc-patches
On 3/2/23 02:43, Richard Biener wrote: On Wed, 1 Mar 2023, Jason Merrill wrote: On 3/1/23 08:09, Jakub Jelinek wrote: On Wed, Mar 01, 2023 at 01:07:02PM +, Richard Biener wrote: When combining -g1 with -flto we run into the DIE location annotation machinery for globals calling

Re: [PATCH] debug/108772 - ICE with late debug generated with -flto

2023-03-01 Thread Richard Biener via Gcc-patches
On Wed, 1 Mar 2023, Jason Merrill wrote: > On 3/1/23 08:09, Jakub Jelinek wrote: > > On Wed, Mar 01, 2023 at 01:07:02PM +, Richard Biener wrote: > >> When combining -g1 with -flto we run into the DIE location annotation > >> machinery for globals calling dwarf2out_late_global_decl but not >

Re: [PATCH] debug/108772 - ICE with late debug generated with -flto

2023-03-01 Thread Jason Merrill via Gcc-patches
On 3/1/23 08:09, Jakub Jelinek wrote: On Wed, Mar 01, 2023 at 01:07:02PM +, Richard Biener wrote: When combining -g1 with -flto we run into the DIE location annotation machinery for globals calling dwarf2out_late_global_decl but not having any early generated DIE for function scope statics.

Re: [PATCH] debug/108772 - ICE with late debug generated with -flto

2023-03-01 Thread Jakub Jelinek via Gcc-patches
On Wed, Mar 01, 2023 at 01:07:02PM +, Richard Biener wrote: > When combining -g1 with -flto we run into the DIE location annotation > machinery for globals calling dwarf2out_late_global_decl but not > having any early generated DIE for function scope statics. In > this process we'd generate a

[PATCH] debug/108772 - ICE with late debug generated with -flto

2023-03-01 Thread Richard Biener via Gcc-patches
When combining -g1 with -flto we run into the DIE location annotation machinery for globals calling dwarf2out_late_global_decl but not having any early generated DIE for function scope statics. In this process we'd generate a limbo DIE since also the function scope doesn't have any early