https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101185
--- Comment #9 from Hongtao.liu <crazylht at gmail dot com> --- (In reply to Jakub Jelinek from comment #8) > Yeah, ideally main including the cpuid check should be compiled with the > least possible target and if the check is successful call a noipa function > with the command line chosen attributes. > We've always been playing with fire here... Yes, does this solution sound good to you, uros? If yes, please ignore my patch[1], I'll resend a new one. [1]https://gcc.gnu.org/pipermail/gcc-patches/2021-June/573591.html