Re: [PATCH] More early LTO dwarf2out bits

2017-09-19 Thread Jakub Jelinek
On Tue, Sep 19, 2017 at 04:09:20PM +0200, Richard Biener wrote: > > The problem is that add_const_value_attribute has lots of smarts to handle > > various kinds of constants, which the > > if (CHAR_BIT == 8 && BITS_PER_UNIT == 8 > > && initializer_constant_valid_p (init, type)) > > block

Re: [PATCH] More early LTO dwarf2out bits

2017-09-19 Thread Richard Biener
On Tue, 19 Sep 2017, Jakub Jelinek wrote: > On Thu, Oct 13, 2016 at 09:16:07AM +0200, Richard Biener wrote: > > > > This merges a few more bits guarding stuff with ! early_dwarf, mostly > > to avoid creating locations that involve addresses of decls early > > but also to avoid wasting work for

Re: [PATCH] More early LTO dwarf2out bits

2017-09-19 Thread Jakub Jelinek
On Thu, Oct 13, 2016 at 09:16:07AM +0200, Richard Biener wrote: > > This merges a few more bits guarding stuff with ! early_dwarf, mostly > to avoid creating locations that involve addresses of decls early > but also to avoid wasting work for BLOCK_NONLOCALIZED_VARs. > > Bootstrapped and tested

[PATCH] More early LTO dwarf2out bits

2016-10-13 Thread Richard Biener
This merges a few more bits guarding stuff with ! early_dwarf, mostly to avoid creating locations that involve addresses of decls early but also to avoid wasting work for BLOCK_NONLOCALIZED_VARs. Bootstrapped and tested on x86_64-unknown-linux-gnu, gdb testsuite tested on the same arch (from the