From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F2CEA383A80F; Wed, 11 Aug 2021 12:10:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F2CEA383A80F From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/101696] Function multiversioning not usable with new x86-64-v* Date: Wed, 11 Aug 2021 12:10:59 +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.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW 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_status cc assigned_to 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, 11 Aug 2021 12:11:00 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101696 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEW CC| |hjl.tools at gmail dot com Assignee|marxin at gcc dot gnu.org |unassigned at gcc d= ot gnu.org --- Comment #5 from Martin Li=C5=A1ka --- Right now, the x86-64* are defined as aliases to k8: {"x86-64", PROCESSOR_K8, CPU_K8, PTA_X86_64_BASELINE, 0, P_NONE}, {"x86-64-v2", PROCESSOR_K8, CPU_GENERIC, PTA_X86_64_V2 | PTA_NO_TUNE, 0, P_NONE}, {"x86-64-v3", PROCESSOR_K8, CPU_GENERIC, PTA_X86_64_V3 | PTA_NO_TUNE, 0, P_NONE}, {"x86-64-v4", PROCESSOR_K8, CPU_GENERIC, PTA_X86_64_V4 | PTA_NO_TUNE, 0, P_NONE}, and it has the corresponding pta info: (gdb) p *arch_info $10 =3D { name =3D 0x1f96cdc "x86-64", processor =3D PROCESSOR_K8, schedule =3D CPU_K8, flags =3D { low =3D 0, high =3D 137445326852 }, model =3D 0, priority =3D P_NONE } thus we end up with: pr101696.c:16:5: error: no dispatcher found for the versioning attributes 16 | int foo () | ^~~ So first step that needs to be done is adding support for the march names i= n: __builtin_cpu_is. @H.J. Can you please add that?=