This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/70082] Attribute ifunc marked functions should not be allowed to call other functions.
- From: "carlos at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 04 Mar 2016 15:52:18 +0000
- Subject: [Bug c/70082] Attribute ifunc marked functions should not be allowed to call other functions.
- Auto-submitted: auto-generated
- References: <bug-70082-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70082
--- Comment #2 from Carlos O'Donell <carlos at redhat dot com> ---
There might be the case where it is argued that documentation is all that is
needed, but that doesn't yield a robust implementation. My biggest worry after
seeing gperftools/tcmalloc use IFUNC is that it works on x86_64 by chance, but
nowhere else. This poses a serious portability problem for ARM and IBM
architectures which differ in the order of relocation processing. Thus I'd like
to see ifunc attribute support the common case of code which does some
computation based on AT_HWCAP (we'll pass this to all x86_64 ifunc resolvers
like newer arches do) and then return a result.