+2023-11-05 Bruno Haible <bruno@clisp.org>
+
+ fenv-exceptions-state: Fix test failure on Haiku/i386 and Haiku/x86_64.
+ * m4/fenv-exceptions-state.m4 (gl_FENV_EXCEPTIONS_STATE): Arrange to
+ override fesetexceptflag() on Haiku.
+ * doc/posix-functions/fesetexceptflag.texi: Mention the Haiku bug.
+
2023-11-05 Bruno Haible <bruno@clisp.org>
fenv: Add C++ tests.
glibc 2.37/i386, glibc 2.37/x86_64,
@c https://sourceware.org/bugzilla/show_bug.cgi?id=30988
glibc 2.37/powerpc,
-musl libc, Mac OS X 10.5, mingw.
+musl libc, Mac OS X 10.5, mingw, Haiku.
@item
This function clears too many floating-point exception flags on
@c https://sourceware.org/bugzilla/show_bug.cgi?id=30998
AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
gl_MATHFUNC([feenableexcept], [int], [(int)], [#include <fenv.h>])
dnl On glibc 2.37 for PowerPC, i386, x86_64, fesetexceptflag may raise
- dnl traps. Likewise on Mac OS X 10.5.8 on i386, x86_64 and on mingw.
+ dnl traps. Likewise on Mac OS X 10.5.8 on i386, x86_64, on mingw, and
+ dnl on Haiku on i386, x86_64.
AC_CACHE_CHECK([whether fesetexceptflag is guaranteed non-trapping],
[gl_cv_func_fesetexceptflag_works1],
[if test $gl_cv_func_feenableexcept_no_libm = yes \
[gl_cv_func_fesetexceptflag_works1="guessing no"],
[gl_cv_func_fesetexceptflag_works1="guessing yes"])
;;
+ # Guess no on Haiku.
+ haiku*)
+ gl_cv_func_fesetexceptflag_works1="guessing no"
+ ;;
*) gl_cv_func_fesetexceptflag_works1="guessing yes" ;;
esac
fi