This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/40528] Add a new ifunc attribute
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Jun 2009 19:26:15 -0000
- Subject: [Bug c/40528] Add a new ifunc attribute
- References: <bug-40528-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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