RE: Compile time errors on using target attribute for Function Multi Versioning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[AMD Official Use Only]

Thank you Xi Ruoyao for pointing that out.
Any reasons why GCC does not support it for C?

With Regards,
S. Biplab Raut

-----Original Message-----
From: Xi Ruoyao <xry111@xxxxxxxxxxxxxxxx> 
Sent: Friday, April 22, 2022 1:07 PM
To: Raut, S Biplab <Biplab.Raut@xxxxxxx>; gcc-help@xxxxxxxxxxx
Subject: Re: Compile time errors on using target attribute for Function Multi Versioning

[CAUTION: External Email]

On Fri, 2022-04-22 at 07:09 +0000, Raut, S Biplab via Gcc-help wrote:
> Hi All,
>           I want to support Function Multi Versioning (FMV) in my code 
> by using GCC's "target" attribute.
> Few functions in my program are hand-written intrinsic codes, so I 
> would prefer to use "target" over "target_clones" attribute.
> But, I am getting function redefinition errors for the multiple 
> versions of the function when I try to compile the test program.
>
> Please find the details below:
> Source code is based on:-
> https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgcc.
> gnu.org%2Fwiki%2FFunctionMultiVersioning%23%3A~%3Atext%3D1%2520__attri
> bute__%2520&amp;data=05%7C01%7CBiplab.Raut%40amd.com%7C01b67bf7053048b
> 8fd3e08da2432d931%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C6378620
> 98077115339%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMz
> IiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=TCxrfZmzLCE
> CkYy7gSSS7PNA%2Bd%2BsF7EKpDBYNIaGpus%3D&amp;reserved=0((target,return%
> 200%3B%0A%20%2033%20%7D

Please read the page carefully:

"Support is only available in C++ for i386 targets."
--
Xi Ruoyao <xry111@xxxxxxxxxxxxxxxx>
School of Aerospace Science and Technology, Xidian University




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux