From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F239C39556AA; Fri, 16 Oct 2020 13:54:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F239C39556AA From: "cvs-commit at gcc dot 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 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: sripar01 at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Oct 2020 13:54:39 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97327 --- Comment #6 from CVS Commits --- The master branch has been updated by SRINATH PARVATHANENI : https://gcc.gnu.org/g:90042c43a92c452a5f9f3afbfcdad511ea09a54f commit r11-4006-g90042c43a92c452a5f9f3afbfcdad511ea09a54f Author: Srinath Parvathaneni Date: Fri Oct 16 14:53:28 2020 +0100 arm: Fix the warning -mcpu=3Dcortex-m55 conflicting with -march=3Darmv8.1-m.main (pr97327). This patch fixes (PR97327) the warning -mcpu=3Dcortex-m55 conflicts with -march=3Darmv8.1-m.main for -mfloat-abi=3Dsoft by adding the isa_bit_mve_float to clearing FP b= it list. The following combination are fixed with this patch: $ cat bug.c int main(){ return 0; } $ arm-none-eabi-gcc -mcpu=3Dcortex-m55 -mfloat-abi=3Dsoft bug.c -c $ arm-none-eabi-gcc -mcpu=3Dcortex-m55 -mfloat-abi=3Dsoft -march=3Darmv8.1-m.main+mve bug.c -c Before this patch for above combinations: cc1: warning: switch '-mcpu=3Dcortex-m55' conflicts with '-march=3Darmv8.1-m.main' switch After this patch for above combinations no warning/errors. gcc/ChangeLog: 2020-10-16 Srinath Parvathaneni PR target/97327 * config/arm/arm.c (fp_bitlist): Add isa_bit_mve_float to FP bi= ts array. gcc/testsuite/ChangeLog: PR target/97327 * gcc.target/arm/mve/intrinsics/pr97327.c: New test.=