This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] PR 12389
> On Sun, 19 Oct 2003 10:35:57 +0200, Jan Hubicka <jh@suse.cz> wrote:
>
> > else if (DECL_ABSTRACT (decl))
> > {
> > ! if (DECL_DECLARED_INLINE_P (decl))
> > {
> > ! if (cgraph_function_possibly_inlined_p (decl))
> > add_AT_unsigned (subr_die, DW_AT_inline, DW_INL_declared_inlined);
> > else
> > ! add_AT_unsigned (subr_die, DW_AT_inline, DW_INL_declared_not_inlined);
> > }
> > ! else if (cgraph_function_possibly_inlined_p (decl))
> > ! add_AT_unsigned (subr_die, DW_AT_inline, DW_INL_inlined);
>
> Ah, you still need an unconditional 'else'.
>
> else
> add_AT_unsigned (subr_die, DW_AT_inline, DW_INL_not_inlined);
>
> We could also abort, since we shouldn't be generating an abstract instance
> in this case.
Just to be sure, when not using -feliminate-dwarf2-dups, we should not
produce DW_INL_declared_not_inlined either, right?
I am testing updated patch I will send shortly.
Honza