From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 370BD3858C20; Tue, 7 Mar 2023 06:29:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 370BD3858C20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678170570; bh=2pkK6Au6tq7vnf2awY8tqNBEISaX+yvwxHGH7Mspagg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=oD2axI2W9SQyr1gr5l6z8I5q5iP1iTOL4r/C94jbj7uBR5KSFz+9l1HwMULJQfAH5 KJKV2n0VixXNFIfIHgW+1T1DdLZMQdmwnsD+ANFsPCJjZb/b7s6nDIAqFD8RgKeNLS oXUcHMJFza/P5A/pZdyEwvXMmWmxzrngZgFjUI5w= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/109047] Harmonize __attribute__((target_clones)) requirement in function prototype Date: Tue, 07 Mar 2023 06:29:29 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109047 --- Comment #2 from Andrew Pinski --- More over the idea of this attribute is you only need to say on the definit= ion if there is going to be multiple targets. Otherwise you would get different behavior across targets. And exporting different symbols if you have one version of the code with and without it. E.g. you have a shared library wit= h a static abi.=