From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mengyan1223.wang (mengyan1223.wang [89.208.246.23]) by sourceware.org (Postfix) with ESMTPS id AA9F13858C2C for ; Fri, 22 Apr 2022 09:27:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org AA9F13858C2C Received: from [IPv6:240e:358:1120:b500:dc73:854d:832e:4] (unknown [IPv6:240e:358:1120:b500:dc73:854d:832e:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384)) (Client did not present a certificate) (Authenticated sender: xry111@mengyan1223.wang) by mengyan1223.wang (Postfix) with ESMTPSA id 1D60C66543; Fri, 22 Apr 2022 05:27:29 -0400 (EDT) Message-ID: Subject: Re: Compile time errors on using target attribute for Function Multi Versioning From: Xi Ruoyao To: "Raut, S Biplab" , "gcc-help@gcc.gnu.org" Date: Fri, 22 Apr 2022 17:27:26 +0800 In-Reply-To: References: <8cb9e6d0e8ece312768d0cb373cb05ca8e8e13d4.camel@mengyan1223.wang> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.0 MIME-Version: 1.0 X-Spam-Status: No, score=-3031.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, JMQ_SPF_NEUTRAL, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Apr 2022 09:27:35 -0000 On Fri, 2022-04-22 at 08:17 +0000, Raut, S Biplab wrote: > [AMD Official Use Only] >=20 > Thank you Xi Ruoyao for pointing that out. > Any reasons why GCC does not support it for C? The initial implemention reused the compiler component for C++ function overloading. And the C programmers likely prefer an explicit way using `__attribute__((ifunc(...)))` so nobody really wanted to spend time implementing this for C. --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University