https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98460
H.J. Lu <hjl.tools at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|unknown |10.2.1 Target Milestone|--- |11.0 Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> --- Fixed in GCC 11 by r11-1629: [hjl@gnu-tgl-2 tmp]$ cat x.c #include <stdio.h> int main () { if (__builtin_cpu_supports("sha")) printf ("SHA\n"); return 0; } [hjl@gnu-tgl-2 tmp]$ gcc x.c x.c: In function ‘main’: x.c:6:3: error: parameter to builtin not valid: sha 6 | if (__builtin_cpu_supports("sha")) | ^~ [hjl@gnu-tgl-2 tmp]$ /usr/gcc-11.0.0-x32/bin/gcc x.c [hjl@gnu-tgl-2 tmp]$ ./a.out SHA [hjl@gnu-tgl-2 tmp]$