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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |iains at gcc dot gnu.org

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Iru Cai from comment #6)
> I've checked host_detect_local_cpu() in gcc/config/i386/driver-i386.c. GCC
> detects x86 host CPU micro architecture by cpuid instruction instead of the
> APIs provided by the OS.

But there shouldn't have been any functional changes in the code 10.x vs. 11.x

Erik - does GCC 10.3 actually still work?  Thus, isn't it maybe some OS
restriction on CPUID access, maybe a difference in whether the GCC binaries
are signed or not?

I wonder if you can try

int main()
{
  __builtin_cpu_init ();
  return __builtin_cpu_is ("skylake");
}

with both compilers?

Reply via email to