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

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

 



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://gcc.gnu.org/wiki/FunctionMultiVersioning#:~:text=1%20__attribute__%20((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