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 10:00:39AM +0200, Jan Hubicka wrote:
> Also what about COOMDAT functions? I guess the debug info should be
> conservative then and always claim that function has been inlined as it
> may be inlined in the other compilation unit, right?
What I understand from the DWARF2 specs is that the definitions
of the DW_AT_inline attribute
DW_INL_declared_inlined Declared inline and inlined by the compiler
DW_INL_inlined Not declared inline but inlined by the compiler
DW_INL_declared_not_inlined Declared inline but not inlined by the compiler
DW_INL_not_inlined Not declared inline nor inlined by the compiler
really means this *)
DW_INL_declared_inlined same
DW_INL_inlined same
DW_INL_declared_not_inlined Declared inline but no other DIE refers to this
entry as its abstract origin.
DW_INL_not_inlined Not declared inline and no other DIE refers to
this entry as its abstract origin.
And since these references (DW_AT_abstract_origin) are per compilation
unit (DW_TAG_compile_unit), the answer seems to be no.
--
Carlo Wood <carlo@alinoe.com>
*) If it meant anything else then it would indeed be completely useless.