On NetBSD 9.3/arm64, I see the attached test failures of fenv* tests. This patch fixes them all. 2024-01-19 Bruno Haible fenv-*: Fix test failures on NetBSD 9.3/arm64. * m4/fenv-exceptions-trapping.m4 (gl_FENV_EXCEPTIONS_TRAPPING): Override feenableexcept() also on NetBSD/arm64. * doc/glibc-functions/feenableexcept.texi: Update platforms list. diff --git a/doc/glibc-functions/feenableexcept.texi b/doc/glibc-functions/feenableexcept.texi index 0c98c5c844..a306a904e5 100644 --- a/doc/glibc-functions/feenableexcept.texi +++ b/doc/glibc-functions/feenableexcept.texi @@ -26,7 +26,7 @@ macOS 11.1, musl libc, FreeBSD 5.2.1, NetBSD 5.0, OpenBSD 3.8, Minix 3.1.8, AIX 5.1, HP-UX 11, IRIX 6.5, Solaris 11.4, Cygwin 1.7.7, mingw, MSVC 14, Android 4.4. @item This function does not detect failures on -glibc 2.19/aarch64, FreeBSD 12.2/arm, FreeBSD 12.2/arm64. +glibc 2.19/aarch64, FreeBSD 12.2/arm, FreeBSD 12.2/arm64, NetBSD 9.3/arm64. @end itemize Portability problems not fixed by Gnulib: diff --git a/m4/fenv-exceptions-trapping.m4 b/m4/fenv-exceptions-trapping.m4 index 784bed1697..cd9c96674f 100644 --- a/m4/fenv-exceptions-trapping.m4 +++ b/m4/fenv-exceptions-trapping.m4 @@ -1,4 +1,4 @@ -# fenv-exceptions-trapping.m4 serial 1 +# fenv-exceptions-trapping.m4 serial 2 dnl Copyright (C) 2023-2024 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -17,7 +17,7 @@ AC_DEFUN_ONCE([gl_FENV_EXCEPTIONS_TRAPPING] dnl On glibc 2.19/aarch64, feenableexcept does not detect failures. dnl Fixed through dnl . - dnl Similarly on FreeBSD 12.2/arm and FreeBSD 12.2/arm64. + dnl Similarly on FreeBSD 12.2/arm, FreeBSD 12.2/arm64, NetBSD 9.3/arm64. case "$host" in aarch64*-*-linux*) AC_CACHE_CHECK([whether feenableexcept works], @@ -41,7 +41,7 @@ AC_DEFUN_ONCE([gl_FENV_EXCEPTIONS_TRAPPING] *) REPLACE_FEENABLEEXCEPT=1 ;; esac ;; - arm*-*-freebsd* | aarch64*-*-freebsd*) + arm*-*-freebsd* | aarch64*-*-freebsd* | aarch64*-*-netbsd*) REPLACE_FEENABLEEXCEPT=1 ;; esac