This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]