https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93419
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- __has_attribute(ifunc) is true as the attribute is supported all the way through the compiler up to the point where it gets emitted. Really __has_attribute is a bad execuse for not doing proper feature testing in my mine.