public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug driver/100347] New: GCC 11 does not recognize skylake; translates "march=native" to "x86_64"
@ 2021-04-29 23:34 schnetter at gmail dot com
  2021-04-29 23:35 ` [Bug driver/100347] " schnetter at gmail dot com
                   ` (20 more replies)
  0 siblings, 21 replies; 22+ messages in thread
From: schnetter at gmail dot com @ 2021-04-29 23:34 UTC (permalink / raw)
  To: gcc-bugs

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

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2022-07-26 13:38 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-29 23:34 [Bug driver/100347] New: GCC 11 does not recognize skylake; translates "march=native" to "x86_64" schnetter at gmail dot com
2021-04-29 23:35 ` [Bug driver/100347] " schnetter at gmail dot com
2021-04-30  6:59 ` [Bug target/100347] [11/12 Regression] " rguenth at gcc dot gnu.org
2021-04-30  8:38 ` jakub at gcc dot gnu.org
2021-04-30  8:39 ` jakub at gcc dot gnu.org
2021-04-30 13:24 ` schnetter at gmail dot com
2021-05-06  7:46 ` mytbk920423 at gmail dot com
2021-05-06  8:00 ` rguenth at gcc dot gnu.org
2021-05-06  8:09 ` iains at gcc dot gnu.org
2021-05-06  8:30 ` jakub at gcc dot gnu.org
2021-05-06 11:20 ` iains at gcc dot gnu.org
2021-05-06 12:29 ` iains at gcc dot gnu.org
2021-05-06 12:32 ` schnetter at gmail dot com
2021-05-06 12:54 ` schnetter at gmail dot com
2021-05-06 13:34 ` iains at gcc dot gnu.org
2021-05-07 12:27 ` schnetter at gmail dot com
2021-05-07 13:28 ` iains at gcc dot gnu.org
2021-05-09  9:26 ` iains at gcc dot gnu.org
2021-07-28  7:06 ` rguenth at gcc dot gnu.org
2022-01-05 14:43 ` rguenth at gcc dot gnu.org
2022-04-21  7:49 ` rguenth at gcc dot gnu.org
2022-07-26 13:38 ` [Bug target/100347] [11/12/13 " rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).