https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89125
--- Comment #8 from kargl at gcc dot gnu.org --- (In reply to kargl from comment #6) > Checking with FreeBSD developers on C99 compliance. The answer is 'no'. FreeBSD's C runtime libraries (libc+libm) are not fully C99 complaint. It is a shame, too. Unfortunately and I should have remembered, FreeBSD's C runtime libraries (ie libc+libm) are not C99 compliant. The problem (for me) is that function_c99_math_complex indicates that libm includes a complete set of C99 complex math function, which of course it doesn't. Testing with GCC trunk gives 1 default_libc_has_function (C99 compliant libc+libm) 2 no_c99_libc_has_function (FreeBSD current setting) 1 2 === gcc Summary === # of expected passes 134923 134887 # of unexpected failures 171 207 <-- This is good. # of unexpected successes 27 27 # of expected failures 550 550 # of unresolved testcases 14 14 # of unsupported tests 2222 2222 === g++ Summary === # of expected passes 124009 124009 # of unexpected failures 41 41 # of expected failures 548 548 # of unsupported tests 5585 5585 === gfortran Summary === # of expected passes 48992 48993 # of unexpected failures 2 1 <-- This is bad. # of expected failures 130 130 # of unsupported tests 88 88 'This is bad' occurs because FreeBSD is missing cexpl and the fallback in libgfortran/intrinsics/c99_functions.c seems to be broken on FreeBSD if default_libc_has_function is used.