public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/97327] -mcpu=cortex-m55 warns without -mfloat-abi=hard or -march=armv8.1-m.main
Date: Fri, 16 Oct 2020 13:54:38 +0000	[thread overview]
Message-ID: <bug-97327-4-yfZYPvQAVE@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-97327-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by SRINATH PARVATHANENI
<sripar01@gcc.gnu.org>:

https://gcc.gnu.org/g:90042c43a92c452a5f9f3afbfcdad511ea09a54f

commit r11-4006-g90042c43a92c452a5f9f3afbfcdad511ea09a54f
Author: Srinath Parvathaneni <srinath.parvathaneni@arm.com>
Date:   Fri Oct 16 14:53:28 2020 +0100

    arm: Fix the warning -mcpu=cortex-m55 conflicting with
-march=armv8.1-m.main (pr97327).

    This patch fixes (PR97327) the warning -mcpu=cortex-m55 conflicts with
-march=armv8.1-m.main
    for -mfloat-abi=soft by adding the isa_bit_mve_float to clearing FP bit
list.

    The following combination are fixed with this patch:
    $ cat bug.c
    int main(){
    return 0;
    }

    $ arm-none-eabi-gcc -mcpu=cortex-m55 -mfloat-abi=soft bug.c -c
    $ arm-none-eabi-gcc -mcpu=cortex-m55 -mfloat-abi=soft
-march=armv8.1-m.main+mve bug.c -c

    Before this patch for above combinations:
    cc1: warning: switch '-mcpu=cortex-m55' conflicts with
'-march=armv8.1-m.main' switch

    After this patch for above combinations no warning/errors.

    gcc/ChangeLog:

    2020-10-16  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>

            PR target/97327
            * config/arm/arm.c (fp_bitlist): Add isa_bit_mve_float to FP bits
array.

    gcc/testsuite/ChangeLog:

            PR target/97327
            * gcc.target/arm/mve/intrinsics/pr97327.c: New test.

  parent reply	other threads:[~2020-10-16 13:54 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-07 21:52 [Bug target/97327] New: " clyon at gcc dot gnu.org
2020-10-07 21:52 ` [Bug target/97327] " clyon at gcc dot gnu.org
2020-10-07 22:05 ` clyon at gcc dot gnu.org
2020-10-08  8:11 ` jgreenhalgh at gcc dot gnu.org
2020-10-09  9:50 ` sripar01 at gcc dot gnu.org
2020-10-13  9:14 ` avieira at gcc dot gnu.org
2020-10-13  9:22 ` clyon at gcc dot gnu.org
2020-10-13  9:33 ` avieira at gcc dot gnu.org
2020-10-13  9:51 ` avieira at gcc dot gnu.org
2020-10-16 13:54 ` cvs-commit at gcc dot gnu.org [this message]
2020-10-19 11:58 ` cvs-commit at gcc dot gnu.org
2020-10-19 12:06 ` sripar01 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-97327-4-yfZYPvQAVE@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).