https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100347
Bug ID: 100347 Summary: GCC 11 does not recognize skylake; translates "march=native" to "x86_64" Product: gcc Version: 11.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: driver Assignee: unassigned at gcc dot gnu.org Reporter: schnetter at gmail dot com Target Milestone: --- I just built GCC 11.1.0 (via Spack). I find that "-march=native" does not work any more. It used to work with GCC 10.3 and earlier. The symptom is that manually vectorized code does not compile any more. This demonstrates the problem: $ ./view-compilers/bin/gcc -march=native -Q --help=target | grep march -march= x86-64 Known valid arguments for -march= option: This outputs "x86-64" where I expect "skylake". $ ./view-compilers/bin/gcc --version gcc (Spack GCC) 11.1.0 Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. It works with an older version of GCC: $ /opt/local/bin/gcc -march=native -Q --help=target | grep march -march= skylake Known valid arguments for -march= option: $ /opt/local/bin/gcc --version gcc (MacPorts gcc10 10.3.0_0) 10.3.0 Copyright (C) 2020 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. My system is a $ uname -a Darwin redshift.local 20.4.0 Darwin Kernel Version 20.4.0: Fri Mar 5 01:14:14 PST 2021; root:xnu-7195.101.1~3/RELEASE_X86_64 x86_64 i386 MacBookPro15,1 Darwin