[Bug libfortran/48982] libgfortran on sysv never uses fpsetmask

jb at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri May 20 14:02:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48982

--- Comment #3 from Janne Blomqvist <jb at gcc dot gnu.org> 2011-05-20 13:40:47 UTC ---
Actually, in the version control log for acinclude.m4 we have

commit b00fa2cfbfd81cbdc31d5a44e4ce8140cc153776
Author: fxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Fri Feb 25 17:56:04 2011 +0000

        * acinclude.m4 (LIBGFOR_CHECK_FPSETMASK): Set shell variable
        tested in configure.host.
        * configure: Regenerate.


    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170500
138bc75d-0d04-0410-961f-82ee72b054a4

And indeed the test is now

dnl Checks for fpsetmask function.
AC_DEFUN([LIBGFOR_CHECK_FPSETMASK], [
  AC_CACHE_CHECK([whether fpsetmask is present], libgfor_cv_have_fpsetmask, [
    AC_LINK_IFELSE([AC_LANG_PROGRAM([[
#if HAVE_FLOATINGPOINT_H
# include <floatingpoint.h>
#endif /* HAVE_FLOATINGPOINT_H */
#if HAVE_IEEEFP_H
# include <ieeefp.h>
#endif /* HAVE_IEEEFP_H */]],[[fpsetmask(0);]])],
    eval "libgfor_cv_have_fpsetmask=yes", eval "libgfor_cv_have_fpsetmask=no")
  ])
  if test x"$libgfor_cv_have_fpsetmask" = xyes; then
    have_fpsetmask=yes
    AC_DEFINE(HAVE_FPSETMASK, 1, [Define if you have fpsetmask.])
  fi
])


Can you test whether this works on 4.6?



More information about the Gcc-bugs mailing list