https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68025
--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> --- (In reply to Yuan Pengfei from comment #2) > (In reply to Richard Biener from comment #1) > > Confirmed. profile-arcs is not supposed to be used in optimize pragmas or > > attributes and GCC should emit an error here but somehow it does not. > > If so, how can I achieve function-level instrumentation control? May I please ask you for motivation of having such a control? Thanks, Martin