This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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 Wed, Jun 24, 2009 at 8:22 AM, Jakub Jelinek<jakub@redhat.com> wrote:
> On Wed, Jun 24, 2009 at 08:19:17AM -0700, H.J. Lu wrote:
>> > I still fail to see why we need the ifunc argument here though.
>> >
>> > __typeof (foo) *
>> > __attribute__((ifunc))
>> > foo_ifunc (void) asm("foo")
>> > {
>> > ?<return address of foo_{1,2,3}>
>> > }
>> >
>> > works for me. ?Adding __attribute__((alias("foo_ifunc"))) should
>> > make an alias available that you could call directly if you really
>> > want to.
>> >
>>
>> Is asm("foo") required for ifunc function?
>
> If you have foo prototype in current scope, yes, what's wrong with that
> though?
>

Please move ifunc attribute discussion to

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40528

Thanks.


-- 
H.J.


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