]> Savannah Git Hosting - gnulib.git/commitdiff
fenv-environment: Fix for NetBSD/powerpc.
authorBruno Haible <bruno@clisp.org>
Fri, 19 Jan 2024 21:58:43 +0000 (22:58 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 31 Jan 2024 16:49:37 +0000 (17:49 +0100)
* m4/fenv-environment.m4 (gl_FENV_ENVIRONMENT): For feupdateenv, use
the same configure test on NetBSD/powerpc as on glibc/hppa.
* doc/posix-functions/feupdateenv.texi: Mention the NetBSD/powerpc bug.

ChangeLog
doc/posix-functions/feupdateenv.texi
m4/fenv-environment.m4

index 31b434da77ba90f0759959bcaaf39e07f943b39c..7405e6568acfcf01266b7ecedac6eda1526d85e6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2024-01-19  Bruno Haible  <bruno@clisp.org>
 
+       fenv-environment: Fix for NetBSD/powerpc.
+       * m4/fenv-environment.m4 (gl_FENV_ENVIRONMENT): For feupdateenv, use
+       the same configure test on NetBSD/powerpc as on glibc/hppa.
+       * doc/posix-functions/feupdateenv.texi: Mention the NetBSD/powerpc bug.
+
        fenv-exceptions-trapping: Avoid a test failure on *BSD/powerpc*.
        * tests/test-fenv-except-trapping-2.c (main): Skip the '4' tests also on
        FreeBSD/powerpc* and NetBSD/powerpc*.
index bb844ec2f19e68a1907d18f182eefe8ad32b458b..4fd76416a1958e3ad6cfde32aab0ea798be3e028 100644 (file)
@@ -34,7 +34,8 @@ musl libc/i386, musl libc/x86_64, AIX 7.3, Solaris 10 and 11, mingw 10.
 This function does not trigger traps on
 @c https://sourceware.org/bugzilla/show_bug.cgi?id=31023
 glibc 2.37/hppa,
-musl libc/s390x.
+musl libc/s390x,
+NetBSD 9.3/powerpc.
 @item
 This function may fail on some platforms:
 MSVC 14.
index 16bf5137070f443e988c0a0b55984c982abd1022..fe660303a9e19340d4231336ab602a79cb2e9ce8 100644 (file)
@@ -1,4 +1,4 @@
-# fenv-environment.m4 serial 1
+# fenv-environment.m4 serial 1.1
 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,
@@ -304,9 +304,10 @@ AC_DEFUN([gl_FENV_ENVIRONMENT],
     dnl <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=a8c79c4088e8c04e4297936efa0dee6c8e6e974d>)
     dnl and on Mac OS X 10.5/{i386,x86_64} (where it forgets about the currently
     dnl set floating-point exception flags)
-    dnl and on musl libc/s390x (where it does not trigger traps)
-    dnl on musl libc/{i386,x86_64} and AIX and Solaris and mingw 10 (where it
-    dnl fails to restore the exception trap bits),
+    dnl and on musl libc/s390x and NetBSD 9.3/powerpc (where it does not trigger
+    dnl traps)
+    dnl and on musl libc/{i386,x86_64} and AIX and Solaris and mingw 10 (where
+    dnl it fails to restore the exception trap bits),
     dnl and on FreeBSD 12.2/arm64 (see
     dnl <https://cgit.freebsd.org/src/commit/?id=34cc08e336987a8ebc316595e3f552a4c09f1fd4>).
     dnl On MSVC 14 it may even fail.
@@ -329,8 +330,8 @@ AC_DEFUN([gl_FENV_ENVIRONMENT],
              [gl_cv_func_feupdateenv_works="guessing no"])
            LIBS="$save_LIBS"
            ;;
-         # Guess no on glibc/hppa.
-         hppa*-*-*-gnu*)
+         # Guess no on glibc/hppa and NetBSD/powerpc64.
+         hppa*-*-*-gnu* | powerpc*-*-netbsd*)
            save_LIBS="$LIBS"
            LIBS="$LIBS $FENV_ENVIRONMENT_LIBM"
            AC_RUN_IFELSE(