Re: [PR49366] emit loc exprs for C++ non-virtual pmf template value parms

2016-08-30 Thread Alexandre Oliva
On Aug 24, 2016, Richard Biener wrote: > The issue with LTO / early debug is that we can't prune DIEs that refer > to optimized out entities from early debug output thus we have to create > those DIEs late only (in the above case, as tmpl_value_param_die_table > is not streamed, not at all for LT

Re: [PR49366] emit loc exprs for C++ non-virtual pmf template value parms

2016-08-24 Thread Richard Biener
On Sat, Jul 23, 2016 at 4:30 PM, Alexandre Oliva wrote: > We used to emit, in debug information, the values bound to pointer to > member function template parameters only when they were NULL or > virtual member functions, because those can be represented with > DW_AT_const_value. > > In order to r

Re: [PR49366] emit loc exprs for C++ non-virtual pmf template value parms

2016-08-05 Thread Alexandre Oliva
On Aug 5, 2016, Jason Merrill wrote: >> With this patch, when we can't emit a DW_AT_const_value, we emit each >> "member" of the pointer to member function "record" as a >> DW_OP_stack_value DW_OP_piece, as long as the referenced member >> function is output in the same translation unit, otherwi

Re: [PR49366] emit loc exprs for C++ non-virtual pmf template value parms

2016-08-05 Thread Alexandre Oliva
On Aug 5, 2016, Jason Merrill wrote: > On Sat, Jul 23, 2016 at 10:30 AM, Alexandre Oliva wrote: >> With this patch, when we can't emit a DW_AT_const_value, we emit each >> "member" of the pointer to member function "record" as a >> DW_OP_stack_value DW_OP_piece, as long as the referenced member

Re: [PR49366] emit loc exprs for C++ non-virtual pmf template value parms

2016-08-05 Thread Jason Merrill
On Sat, Jul 23, 2016 at 10:30 AM, Alexandre Oliva wrote: > We used to emit, in debug information, the values bound to pointer to > member function template parameters only when they were NULL or > virtual member functions, because those can be represented with > DW_AT_const_value. > > In order to

Re: [PR49366] emit loc exprs for C++ non-virtual pmf template value parms

2016-08-01 Thread Alexandre Oliva
On Jul 23, 2016, Alexandre Oliva wrote: > We used to emit, in debug information, the values bound to pointer to > member function template parameters only when they were NULL or > virtual member functions, because those can be represented with > DW_AT_const_value. > In order to represent the sym

[PR49366] emit loc exprs for C++ non-virtual pmf template value parms

2016-07-23 Thread Alexandre Oliva
We used to emit, in debug information, the values bound to pointer to member function template parameters only when they were NULL or virtual member functions, because those can be represented with DW_AT_const_value. In order to represent the symbolic pointer to member function constants for non-v