https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107513
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- GCC's artificial attribute should be similar for functions: https://gcc.gnu.org/onlinedocs/gcc-12.2.0/gcc/Common-Function-Attributes.html#index-artificial-function-attribute Which was added in GCC 4.3.0 by r0-83503-gd752cfdb114944. types GCC does not have one. I suspect for your usage artificial is enough.