https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68743
--- Comment #24 from joseph at codesourcery dot com <joseph at codesourcery dot com> --- The transformation that generates floorf calls should not happen if the TARGET_LIBC_HAS_FUNCTION says that the target does not have that function. You should fix either the definition of TARGET_LIBC_HAS_FUNCTION or the logic that should be checking it, rather than working around it in libgfortran.