From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id ABA22396DC19; Wed, 16 Nov 2022 21:19:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ABA22396DC19 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668633587; bh=tMSpCcZdMsRAjIADfjSmpYYGds/AJMphnlaGkUeYjA0=; h=From:To:Subject:Date:From; b=lU/Ch1doXQSvN2jSvrJGmlw/iaGTZtANgP+ZClIpTPaSuB+Zp6/hkrnCtz0QALq3g a2oh0dg5k+D5zCKg4U6EtD1A90ESHK/4P0uZNIL6fZDC3PuDh2z2yLXdBDpRjCt7y2 VPE9QV3Ds+iENl+tkuUMLht/aGxYBNWhVIEbIRpY= From: "unlvsur at live dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/107727] New: error: multiversioning needs 'ifunc' which is not supported on this target (x86_64-w64-mingw32 target) Date: Wed, 16 Nov 2022 21:19:47 +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: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: unlvsur at live dot com 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107727 Bug ID: 107727 Summary: error: multiversioning needs 'ifunc' which is not supported on this target (x86_64-w64-mingw32 target) Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: unlvsur at live dot com Target Milestone: --- #include [[__gnu__::__target__("avx2")]] inline void foo() { puts("avx2\n"); } [[__gnu__::__target__("default")]] inline void foo() { puts("default\n"); } int main() { foo(); } $ clang++ -o a a.cc --target=3Dx86_64-windows-gnu -s -flto=3Dthin -fuse-ld= =3Dlld $ wine a.exe avx2 $ x86_64-w64-mingw32-g++ -o a a.cc -s -flto a.cc: In function 'int main()': a.cc:10:13: error: multiversioning needs 'ifunc' which is not supported on = this target 10 | inline void foo() | ^~~ a.cc:18:1: error: use of multiversioned function without a default 18 | } | ^=