public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rearnsha at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/104455] Cannot select -march=armv7-a using GCC 11
Date: Fri, 11 Feb 2022 15:24:57 +0000	[thread overview]
Message-ID: <bug-104455-4-IYFBghUf3U@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-104455-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #5 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
(In reply to Jeffrey Walton from comment #4)

> 
> So stepping back to 10,000 feet, we now need to specify options and ISA's we
> are not using. That seems like a bug to me. I'm not sure I would consider
> this fixed.
> 
> Where is it going to stop? How many non-used options that I am not aware of
> will I need to specify?
> 
> I think either GCC or Debian needs to fix this. This could be a GCC bug
> because GCC apparently knows there's a fp unit but it chooses to ignore it.
> Instead it wants me to say it again. This could be a Debian bug because they
> need to completely (not partially) configure things.

No, it knows it /needs/ a FP unit, but you haven't told it which one is
available.  The Arm architecture has many variants and not all are necessarily
compatible with a base set, so you have to explicitly state which one is
intended.  Assumptions are a potential source of massive misunderstandings.

Note, in the past the FPU variant was baked into the compiler when it was
configured and this lead to all forms of confusion because if you had a Neon
FPU and then started compiling for a cortex-m device you could still end up
with Neon instructions in your code because there was no explicit option to
turn it off.  We've gone as far as we can by allowing you to simply specify
'+fp' rather than having to know exactly which variant of the VFP architecture
goes with armv7-a.

Also note that clang has the same option logic for CPU selection.

      parent reply	other threads:[~2022-02-11 15:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-08 23:45 [Bug c++/104455] New: " noloader at gmail dot com
2022-02-09 11:47 ` [Bug target/104455] " rearnsha at gcc dot gnu.org
2022-02-10  3:12 ` noloader at gmail dot com
2022-02-10 11:17 ` rearnsha at gcc dot gnu.org
2022-02-10 20:44 ` noloader at gmail dot com
2022-02-10 21:16 ` schwab@linux-m68k.org
2022-02-11 15:24 ` rearnsha at gcc dot gnu.org [this message]

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-104455-4-IYFBghUf3U@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).