https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119557
Bug ID: 119557 Summary: malloc attribute on function decls and merging interaction with LTO Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: documentation, lto Severity: enhancement Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: pinskia at gcc dot gnu.org Target Milestone: --- I am not 100% sure this is just a documentation issue or there needs some changes to be done with respect to maybe adding noinline when malloc attribute different between 2 TUs. An exmple is PR 117315. Even though the malloc attribute is included on the TU that has the malloc attribute on it but even if we remove it from the TU which has the definition of the function that might become well defined? This came up when I was thinking about clang's not_tail_called attribute and how to handle merging the decl for LTO.