From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 31C18385783D; Tue, 13 Apr 2021 17:40:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 31C18385783D From: "rearnsha at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/100067] New: Unexpected warning for -mcpu=neoverse-n1 when configured with --with-fpu Date: Tue, 13 Apr 2021 17:40:43 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new 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: rearnsha 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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: Tue, 13 Apr 2021 17:40:43 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100067 Bug ID: 100067 Summary: Unexpected warning for -mcpu=3Dneoverse-n1 when configured with --with-fpu Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: rearnsha at gcc dot gnu.org Target Milestone: --- If the compiler is configured with (for example): --with-arch=3Darmv7-a --with-fpu=3Dneon --with-float=3Dhard then compiling with gcc -S -mcpu=3Dneoverse-n1 leads to an unexpected warning: cc1: warning: switch =E2=80=98-mcpu=3Dneoverse-n1=E2=80=99 conflicts with = =E2=80=98-march=3Darmv8.2-a=E2=80=99 switch The same can be seen if -mfpu is passed explicitly on the command-line (whi= ch, while it shouldn't happen, is slightly less surprising). If -mfpu is specified to be anything other than auto (via command line or configuration), it is expected that this will override *all* features from = the cpu/arch setting that relate to the use of the FPU. Note, we should probably at this point progress the deprecation process for -mfpu by deprecating the config option that allows this to be set during configure.=