On Wed, May 27, 2015 at 9:34 PM, Jason Merrill <ja...@redhat.com> wrote: > OK, I see the issue. We're calling debug_abstract_function to build debug > info for the abstract instance of a function that we already built from > dwarf2out_early_global_decl. > > It occurs to me that the early-dwarf work should make > debug_abstract_function and most of the DECL_ABSTRACT handling obsolete. > All we need to do is set DW_AT_inline during early debug and update it > during late debug if the function is inlined.
Yes, that was my idea as well. The early dwarf _is_ the "abstract" variant after all (until we annotate it further without going through another indirection like I did for LTO). Richard. > Jason