https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94694
--- Comment #15 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Thus, I think we can extend the patch I've attached (and fix the two fmaf to fmal spots), plus do the HAVE_INLINE_BUILTIN_* in configure.ac either through a config/math.m4 macro, or through a loop over the functions that can have such treatment with a likely inlined implementation. But still, the trig*.inc needs to check HAVE_* macros of everything that it uses and just don't provide the definitions if it can't be implemented.