https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101261
--- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> ---
Reduced test-case:
$ cat iop_profile.i
void
__attribute__((target_clones("default", "avx2")))
dt_ioppr_transform_image_colorspace()
{
dt_ioppr_transform_image_colorspace();
}
$ gcc iop_profile.i -fno-semantic-interposition -c -fPIC
iop_profile.i:3:1: error: clones for ‘target_clones’ attribute cannot be
created
3 | dt_ioppr_transform_image_colorspace()
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
iop_profile.i:3:1: note: ‘target_clones’ cannot be combined with ‘alias’
attribute
I've got a patch candidate.