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


On Fri, Jun 26, 2009 at 8:04 AM, Paolo Bonzini<bonzini@gnu.org> wrote:
>> 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.
>

How do you propose to support C++?

-- 
H.J.


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