https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90431
Bug ID: 90431 Summary: support __builtin_cpu_supports() in Linux kernel code Product: gcc Version: 8.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: slandden at gmail dot com Target Milestone: --- Given that the glibc features is based on AT_HWCAPS which comes from Linux this should be quite straight forward. #ifdef __KERNEL__