https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63966

--- Comment #9 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to Jakub Jelinek from comment #7)
> That assumes there is <cpuid.h> provided by the system compiler.
> The code is guarded with
> #if (GCC_VERSION >= 4005) && (defined(__i386__) || defined(__x86_64__)) &&
> !(defined(__sun__) && defined(__svr4__))
> but doesn't clang and icc pretend to be some versions of GCC?
> I think better would be to include #include "../gcc/config/i386/cpuid.h"
> only if GCC_VERSION >= 5000 (or perhaps that or __PIC__ not defined or
> __x86_64__ defined), and otherwise not use __get_cpuid at all, just
> statically decide based on minimum value.

Whops, I didn't see this message. Yes, we can follow the example in
driver-i386.h and just disable specialization for gcc < 5.0

Reply via email to