On Mon, Jan 20, 2020 at 5:36 AM Alexander Monakov <[email protected]> wrote:
>
>
>
> On Mon, 20 Jan 2020, H.J. Lu wrote:
> > We can that only if function is static:
> >
> [ship asm]
> >
> > In this case, foo must be global.
>
> H.J., can you rephrase more clearly? Your response seems contradictory and
> does not help to explain the matter.
>
> Alexander
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.
--
H.J.