On 22-03-20 16:30:08, FX wrote: > Hi, > > (Please send all Fortran (front-end and libgfortran) patches in CC to the Fortran list.) > > Please hold from pushing the patch as is, I have some questions: > > - If FreeBSD has feenableexcept() and related functions, it should already use the fpu-glibc code, because of this: > > if test "x${have_feenableexcept}" = "xyes"; then > fpu_host='fpu-glibc' > ieee_support='yes' > fi > > So before the patch, what was configure.host returning, and what is the value of have_feenableexcept? > > - Why restrict the patch to powerpc*? Don’t other FreeBSD targets have that function? > - How does the patch affect the results of “make check-gfortran”? > > > Thanks, > FX Hello, the problem is that configure checks for feenableexcept() in libm: AC_CHECK_LIB([m],[feenableexcept],[have_feenableexcept=yes AC_DEFINE([HAVE_FEENABLEEXCEPT],[1],[libm includes feenableexcept])]) FreeBSD doesn't have this function in libm, it's implemented in /usr/include/fenv.h.