From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AFA1E3987C21; Wed, 14 Apr 2021 10:00:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AFA1E3987C21 From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/100067] Unexpected warning for -mcpu=neoverse-n1 when configured with --with-fpu Date: Wed, 14 Apr 2021 10:00:32 +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: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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: Wed, 14 Apr 2021 10:00:32 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100067 --- Comment #1 from CVS Commits --- The master branch has been updated by Richard Earnshaw : https://gcc.gnu.org/g:d1e4368ddb76a92c44f824c8e4ca1a3de8149342 commit r11-8168-gd1e4368ddb76a92c44f824c8e4ca1a3de8149342 Author: Richard Earnshaw Date: Wed Apr 14 10:56:36 2021 +0100 arm: fix warning when -mcpu=3Dneoverse-n1 is used with -mfpu=3Dneon [PR= 100067] If the compiler is configured with --with-fpu=3D (or invoked with, say, -mfpu=3Dneon), then specifying -mcpu=3Dneoverse-n1 can lead = to an unexpected warning: cc1: warning: switch =C3=A2-mcpu=3Dneoverse-n1= =C3=A2 conflicts with =C3=A2-march=3Darmv8.2-a=C3=A2 switch The fix for this is to correctly remove all the feature bits relating to simd/fp units when -mfpu is used, not just those bits that form part of the -mfpu specification (which is a subset). gcc: PR target/100067 * config/arm/arm.c (arm_configure_build_target): Strip isa_all_fpbits from the isa_delta when -mfpu has been used. (arm_options_perform_arch_sanity_checks): It's the architecture that lacks an FPU not the processor.=