> Add > > void __cpuidex (int __cpuid_info[4], int __leaf, int __subleaf); > > as well as include guard to <cpuid.h>. > > gcc/ > > PR target/95973 > PR target/96238 > * config/i386/cpuid.h: Add include guard. > (__cpuidex): New. > > gcc/testsuite/ > > PR target/95973 > PR target/96238 > * gcc.target/i386/pr95973.c: New test.
OK. + if (cpuid_info[0] != eax + || cpuid_info[1] != ebx + || cpuid_info[2] != ecx + || cpuid_info[3] != edx) + abort (); You can use __builtin_abort here to avoid inclusion of stdlib.h. Thanks, Uros.