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

Andy Lutomirski <luto at kernel dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |luto at kernel dot org

--- Comment #9 from Andy Lutomirski <luto at kernel dot org> ---
I'm a bit late to the party, but this patch seems dubious to me. 
__get_cpuid_max() fails to distinguish between CPUs that have max level 0
(although I doubt that any such CPUs exist) and CPUs that don't have CPUID at
all.

Shouldn't __get_cpuid_max return -1 if CPUID isn't there or, alternatively,
just generally return the last level + 1 (and 0 if CPUID isn't there)?

Reply via email to