public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Xi Ruoyao <xry111@mengyan1223.wang>
To: "Raut, S Biplab" <Biplab.Raut@amd.com>,
	"gcc-help@gcc.gnu.org" <gcc-help@gcc.gnu.org>
Subject: Re: Compile time errors on using target attribute for Function Multi Versioning
Date: Fri, 22 Apr 2022 17:27:26 +0800	[thread overview]
Message-ID: <d5e8e0387157b9d22dbb7472baa8386f7bd8b461.camel@mengyan1223.wang> (raw)
In-Reply-To: <DM4PR12MB516654A4A860A107F20E9A73F5F79@DM4PR12MB5166.namprd12.prod.outlook.com>

On Fri, 2022-04-22 at 08:17 +0000, Raut, S Biplab wrote:
> [AMD Official Use Only]
> 
> 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.

-- 
Xi Ruoyao <xry111@mengyan1223.wang>
School of Aerospace Science and Technology, Xidian University

      reply	other threads:[~2022-04-22  9:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-22  7:09 Raut, S Biplab
2022-04-22  7:36 ` Xi Ruoyao
2022-04-22  8:17   ` Raut, S Biplab
2022-04-22  9:27     ` Xi Ruoyao [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d5e8e0387157b9d22dbb7472baa8386f7bd8b461.camel@mengyan1223.wang \
    --to=xry111@mengyan1223.wang \
    --cc=Biplab.Raut@amd.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).