This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: PATCH: Add ifunc attribute
> static int
> foo1 (int x)
> {
> ?return x;
> }
>
> int
> __attribute__ ((ifunc))
> foo (int)
> {
> ?return foo1;
> }
>
> int
> bar (int i)
> {
> ?return foo (i);
> }
>
> supports C++ since we use the same prototype for ifunc function.
> The mangled name is the same.
This feels too wrong. The prototypes are magically changed beyond
what any other attribute does. Look at what Roland posted.
Paolo