This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] PR 12389
On Sun, Oct 19, 2003 at 01:57:57PM -0400, Jason Merrill wrote:
> No; the out-of-line concrete instance still refers to this as its abstract origin.
Yeah, already corrected myself on that later.
> >> And since these references (DW_AT_abstract_origin) are per compilation
> >> unit (DW_TAG_compile_unit), the answer seems to be no.
>
> This premise is invalid. All DIE references can cross compilation units
> using DW_FORM_ref_addr. -feliminate-dwarf2-dups uses that to refer to
> common debug info from multiple translation units.
That might be true, but I doubt such a 'compression' would ever occur
if the abstract instance entry of one compilation unit has its
DW_AT_inline attribute set to 'not inlined'. This probably only
happens when the abstract instance entries of two different compilation
units are 100% equivalent no? So no harm will be done by using
DW_INL_declared_not_inlined, except for a little bit of debug info
compression loss when using -feliminate-dwarf2-dups.
I still think that the value of DW_AT_inline is determined solely
by the compilation unit it belongs to.
--
Carlo Wood <carlo@alinoe.com>