https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118125

--- Comment #13 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Martin Jambor from comment #12)
> (We should also probably have a self-test that all attributes used by
> built-in functions are known to LTO.)

So all of the ones used by DEF_ATTR_IDENT in builtin-attrs.def .

Ones which seems to be missing are:
DEF_ATTR_IDENT (ATTR_ALLOC_SIZE, "alloc_size")
DEF_ATTR_IDENT (ATTR_COLD, "cold")


DEF_ATTR_IDENT (ATTR_ASM_FPRINTF, "asm_fprintf")
DEF_ATTR_IDENT (ATTR_GCC_DIAG, "gcc_diag")
DEF_ATTR_IDENT (ATTR_GCC_CDIAG, "gcc_cdiag")
DEF_ATTR_IDENT (ATTR_GCC_CXXDIAG, "gcc_cxxdiag")

DEF_ATTR_IDENT (ATTR_SCANF, "scanf")

DEF_ATTR_IDENT (ATTR_STRFMON, "strfmon")
DEF_ATTR_IDENT (ATTR_STRFTIME, "strftime")

DEF_ATTR_IDENT (ATTR_RETURNS_NONNULL, "returns_nonnull")
DEF_ATTR_IDENT (ATTR_WARN_UNUSED_RESULT, "warn_unused_result")


Though the last one might not be needed as it has not effect on code
generation.

Reply via email to