On Mon, Jan 20, 2020 at 6:16 AM Alexander Monakov <amona...@ispras.ru> wrote: > > > > On Mon, 20 Jan 2020, H.J. Lu wrote: > > For, > > > > --- > > __attribute__((target_clones("avx","default"))) > > int > > foo () > > { > > return -2; > > } > > ---- > > > > foo's resolver must be global. For > > > > --- > > __attribute__((target_clones("avx","default"))) > > static int > > foo () > > { > > return -2; > > } > > --- > > > > foo's resolver must be static. > > Bare IFUNC's don't seem to have this restriction. Why do we want to > constrain target clones this way? >
foo's resolver acts as foo. It should have the same visibility as foo. -- H.J.