https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83875
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- So we are essentially talking about a builtin like __builtin_cpu_{is,supports}, that instead of runtime check would query the target flags of the containing function (if any) or the compilation unit default (if outside of function). I think that is doable, but too late for GCC8.