https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80223
--- Comment #11 from Martin Liška <marxin at gcc dot gnu.org> --- Apparently, we already have an attribute that prevents function instrumentation regarding PGO: no_profile_instrument_function The no_profile_instrument_function attribute on functions is used to inform the compiler that it should not process any profile feedback based optimization code instrumentation. It's there for quite some releases. @Nick: Do you need anything more?