This is the mail archive of the gcc-bugs@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]

[Bug c/40528] Add a new ifunc attribute



------- Comment #5 from jakub at gcc dot gnu dot org  2009-06-24 19:26 -------
What do you do if the function has arguments, because ifunc shouldn't have
arguments?  While C++ has unnamed arguments and you could perhaps enforce them,
C does not.  How do you handle option 3 with:
__attribute__((ifunc)) int
foo (int a, int b)
{
  if (a) return foo_1;
  if (b) return foo_2;
  return foo_3;
}
?


-- 


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


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