This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Add attribute "artificial"
> People did not like the idea of not generating debug info at all
> ( and that's what setting DECL_IGNORED_P would do).
BTW, if you are *going* to try to reuse DECL_ARTIFICIAL, you shouldn't
have hacks like:
! /* If DECL_ARTIFICIAL bit is set or "artificial" attribute is
attached
! then add DW_AT_artificial. */
! if (DECL_ARTIFICIAL (decl)
! || lookup_attribute ("artificial", DECL_ATTRIBUTES (decl)))
add_AT_flag (subr_die, DW_AT_artificial, 1);
The fact that it doesn't stay put is something you should fix.
>
> > Also, "artificial" is not a good name for this attribute; "nodebug"
> > would be better.
>
> Again people did not like "nodebug" name. Feel free to suggest better
> name.
>
> -
> Devang
>