]> Savannah Git Hosting - gnulib.git/commitdiff
fenv-exceptions-tracking-c99: Fix test failures on Minix.
authorBruno Haible <bruno@clisp.org>
Sun, 5 Nov 2023 22:25:08 +0000 (23:25 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 5 Nov 2023 22:25:30 +0000 (23:25 +0100)
* m4/fenv-exceptions-tracking.m4 (gl_FENV_EXCEPTIONS_TRACKING): On
Minix, set REPLACE_FECLEAREXCEPT and REPLACE_FETESTEXCEPT to 1.
* doc/posix-functions/feclearexcept.texi: Mention the Minix bug.
* doc/posix-functions/fetestexcept.texi: Likewise.

ChangeLog
doc/posix-functions/feclearexcept.texi
doc/posix-functions/fetestexcept.texi
m4/fenv-exceptions-tracking.m4

index 0648ef3720402cdaff7364e951bb853f1d4ec32b..e4567afb8ada9684598cd772866702bed8f7d11c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2023-11-05  Bruno Haible  <bruno@clisp.org>
+
+       fenv-exceptions-tracking-c99: Fix test failures on Minix.
+       * m4/fenv-exceptions-tracking.m4 (gl_FENV_EXCEPTIONS_TRACKING): On
+       Minix, set REPLACE_FECLEAREXCEPT and REPLACE_FETESTEXCEPT to 1.
+       * doc/posix-functions/feclearexcept.texi: Mention the Minix bug.
+       * doc/posix-functions/fetestexcept.texi: Likewise.
+
 2023-11-05  Bruno Haible  <bruno@clisp.org>
 
        fenv-exceptions-trapping: Avoid test failure on Haiku/i386.
index 8b218804bd368e9c40f63bc730965c83c4691ed7..4df9178c3063e19259dde1c7ff3828bbf4b8fea0 100644 (file)
@@ -11,6 +11,9 @@ Portability problems fixed by Gnulib:
 @item
 This function is missing on some platforms:
 FreeBSD 6.0, NetBSD 5.0, OpenBSD 3.8, Minix 3.1.8, AIX 5.1, IRIX 6.5, Solaris 9, Cygwin 1.7.7, MSVC 9, Android 4.4.
+@item
+This function is broken on some platforms:
+Minix 3.3/i386.
 @end itemize
 
 Portability problems not fixed by Gnulib:
index 7e9b8e33277d3e97cfce1252f2ff97f4949b0e0d..0073316465037c030872c88e8342632270b5f45d 100644 (file)
@@ -15,6 +15,9 @@ FreeBSD 6.0, NetBSD 5.0, OpenBSD 3.8, Minix 3.1.8, AIX 5.1, IRIX 6.5, Solaris 9,
 This function clears the floating-point exception trap bits on some platforms:
 @c It uses an 'fnstenv' instruction without subsequent 'fldenv' or 'fldcw'.
 NetBSD 9.3/x86_64.
+@item
+This function is broken on some platforms:
+Minix 3.3/i386.
 @end itemize
 
 Portability problems not fixed by Gnulib:
index 1aa378f971dc7701a56dfd648665f07f27df5c74..d5c384c9cbc3b55598d1709bce87f6542ba7d504 100644 (file)
@@ -1,4 +1,4 @@
-# fenv-exceptions-tracking.m4 serial 2
+# fenv-exceptions-tracking.m4 serial 3
 dnl Copyright (C) 2023 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -118,6 +118,12 @@ AC_DEFUN_ONCE([gl_FENV_EXCEPTIONS_TRACKING],
         dnl 'fnstenv' instruction without subsequent 'fldenv' or 'fldcw').
         REPLACE_FETESTEXCEPT=1
         ;;
+      *86*-*-minix*)
+        dnl On Minix 3.3, both the feclearexcept and fetestexcept functions
+        dnl need to be overridden; otherwise we get unit test failures.
+        REPLACE_FECLEAREXCEPT=1
+        REPLACE_FETESTEXCEPT=1
+        ;;
     esac
     if test $REPLACE_FECLEAREXCEPT = 1 \
        && test $REPLACE_FETESTEXCEPT = 1 \