https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101829
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dmalcolm at gcc dot gnu.org, | |msebor at gcc dot gnu.org Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Last reconfirmed| |2021-08-09 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- It might be possible to inline such functions by creating a "stub" call either after or before the inlined function body where the "stub" would just be there to represent the attributes. Say, inline a 'deallocator' fn my_free (x); as <inlined impl> .IFN_STUB_DEALLOCATE (x); or sth like that where those stubs are removed after any diagnostics with regard to pairing of malloc/free have been issued (not sure where that currently happens).