public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "iains at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/100347] [11/12 Regression] GCC 11 does not recognize skylake; translates "march=native" to "x86_64"
Date: Thu, 06 May 2021 13:34:17 +0000 [thread overview]
Message-ID: <bug-100347-4-DTAVsgZ774@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-100347-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100347
--- Comment #14 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Erik Schnetter from comment #13)
> The failing GCC 11.1.0 is built by Apple Clang 12.0.5 via Spack. Looking at
> debug output, I see that Spack inserts a "-march=skylake" command line
> option. (I was not aware of this before.) It does so by creating a compiler
> wrapper (called "clang++" as well), which calls the actual compiler and adds
> this (and some other) flags.
>
> I seem to recall having read somewhere that GCC's CPU detection code must be
> built without any "-march=..." flag.
well, the GCC config makes sensible default choices for CPU (if there's no
--with-cpu=) - which is core2 mostly (so that the code should run anywhere).
As of this moment the only machines I've got builds with --with-cpu= specify
the correct CPU for the machine, so -march= isn't going to tell anything -
except I can say for sure that it doesn't report x86_64):
/src-local/gcc-master/configure
--prefix=/opt/iains/x86_64-apple-darwin16/gcc-12-0-0d
--build=x86_64-apple-darwin16
--with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
--enable-languages=all --with-cpu=corei7 --with-tune=skylake
CC=x86_64-apple-darwin16-gcc CXX=x86_64-apple-darwin16-g++
$ ./gcc/xgcc -Bgcc -march=native -Q --help=target | grep march
-march= skylake
So that's reporting what was configures, but also what would be correct for the
hardware - it hasn't overridden the configuration settings.
can we get the output of "gcc -v" for the compiler that isn't working?
If this is a compiler built without bootstrap, and the bootstrap compiler is
clang, then that could be an unknown quantity. Production compilers should be
bootstrapped.
next prev parent reply other threads:[~2021-05-06 13:34 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-29 23:34 [Bug driver/100347] New: " 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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-100347-4-DTAVsgZ774@http.gcc.gnu.org/bugzilla/ \
--to=gcc-bugzilla@gcc.gnu.org \
--cc=gcc-bugs@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).