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 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?

	Jakub


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