https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83875
--- Comment #5 from Roland Schulz <roland at rschulz dot eu> --- (In reply to Jakub Jelinek from comment #4) > 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). Exactly.