Re: [PATCH] Disable -gsplit-dwarf for all LTO debug

2018-04-12 Thread Richard Biener
On Thu, 12 Apr 2018, Jakub Jelinek wrote: > On Thu, Apr 12, 2018 at 01:35:46PM +0200, Richard Biener wrote: > > > > The following disables split-dwarf for the LTO part of the early debug > > (keeping it for the fat part) and makes sure the driver doesn't > > see -gsplit-dwarf in effect. > > > >

Re: [PATCH] Disable -gsplit-dwarf for all LTO debug

2018-04-12 Thread Jakub Jelinek
On Thu, Apr 12, 2018 at 01:35:46PM +0200, Richard Biener wrote: > > The following disables split-dwarf for the LTO part of the early debug > (keeping it for the fat part) and makes sure the driver doesn't > see -gsplit-dwarf in effect. > > That works for all but the compile stage and slim objects

[PATCH] Disable -gsplit-dwarf for all LTO debug

2018-04-12 Thread Richard Biener
The following disables split-dwarf for the LTO part of the early debug (keeping it for the fat part) and makes sure the driver doesn't see -gsplit-dwarf in effect. That works for all but the compile stage and slim objects (the default) which then ends up generating an empty .dwo file. I'm not sur