[patch] Fix debug info of nested inline functions
Eric Botcazou
ebotcazou@adacore.com
Sat May 19 08:43:00 GMT 2012
> > Does it really matter for concrete instances of inline functions?
>
> Nope. Are those the only things with an abstract origin that will end
> up on limbo?
According to the head comment of the block, yes, but I can try and see what
happens in real life.
> If we're always going to attach them to comp_unit_die () anyway, we might as
> well do that without the loop.
We attach them to the first non-abstract parent function with the loop. That's
important for Ada because we rely on the static nesting of functions in the
debug info to support up-level references in GDB (i.e. access to variables of
parent functions from within nested functions).
--
Eric Botcazou
More information about the Gcc-patches
mailing list