https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89929

--- Comment #23 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Nikolay Bogoychev from comment #22)
> Hey,
> 
> I was reading through the mailing list discussion (
> https://gcc.gnu.org/ml/gcc-patches/2019-04/msg00757.html ) and I want to say
> that currently code like 
> 
> void __attribute__ ((target("avx512dq"))) foo ()
> 
> Compiles as long as function multi-versioning is not used. Making this
> syntax invalid, puts us in a very annoying position, because we can't use
> the new recommended syntax due to
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90129

No, this will be working as it is now. Suggested changes will only touch C++
features of target attribute (so having multiple functions of the same name
with a different target attribute) and target_clone attribute.

> 
> That would mean we would have to do some hacky ifdefs to match different
> compiler versions.
> 
> Is there no other way.
> 
> Cheers,
> 
> Nick

Reply via email to