From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B49CF3857414; Fri, 13 Aug 2021 09:01:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B49CF3857414 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/101261] clones for target_clones attribute cannot be created when compilling with -fno-semantic-interposition Date: Fri, 13 Aug 2021 09:01:48 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 10.3.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin 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: Fri, 13 Aug 2021 09:01:48 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101261 --- Comment #5 from Martin Li=C5=A1ka --- Reduced test-case: $ cat iop_profile.i void __attribute__((target_clones("default", "avx2"))) dt_ioppr_transform_image_colorspace() { dt_ioppr_transform_image_colorspace(); } $ gcc iop_profile.i -fno-semantic-interposition -c -fPIC iop_profile.i:3:1: error: clones for =E2=80=98target_clones=E2=80=99 attrib= ute cannot be created 3 | dt_ioppr_transform_image_colorspace() | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ iop_profile.i:3:1: note: =E2=80=98target_clones=E2=80=99 cannot be combined= with =E2=80=98alias=E2=80=99 attribute I've got a patch candidate.=