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: [IFUNC] PATCH: Add an ifunc attribute


__typeof (foo) bar __attribute__((alias (mangle (foo))));
__typeof (::foo) baz __attribute__((alias (mangle (::foo))));

How do you handle


int foo (int, long);
static int foo1 (int x, long y);
static int foo2 (int x, long y);
int foo (float, long);
static int foo3 (float x, long y);
static int foo4 (float x, long y);

Which foo does __typeof (foo) refer to?

Accept __attribute__ ((ifunc (int foo(int, long)) then. And then do


typedef int foo_type (int, long);
foo *bar (void) __attribute__ ((ifunc (foo_type foo)))

Paolo


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