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/70082] Attribute ifunc marked functions should not be allowed to call other functions.


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.

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