]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
fenv-exceptions-trapping: Work around mingw 14.0.0 bug.
authorBruno Haible <bruno@clisp.org>
Mon, 30 Mar 2026 20:12:50 +0000 (22:12 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 30 Mar 2026 20:12:50 +0000 (22:12 +0200)
* m4/fenv-exceptions-trapping.m4 (gl_FENV_EXCEPTIONS_TRAPPING): Override
feenableexcept, fedisableexcept also on mingw.

ChangeLog
m4/fenv-exceptions-trapping.m4

index 13bfa50623a5faeac12d37c9e4a77e656dd72fa3..b1ae9f6e7b8127104b8d265a27f5622841edc283 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2026-03-30  Bruno Haible  <bruno@clisp.org>
+
+       fenv-exceptions-trapping: Work around mingw 14.0.0 bug.
+       * m4/fenv-exceptions-trapping.m4 (gl_FENV_EXCEPTIONS_TRAPPING): Override
+       feenableexcept, fedisableexcept also on mingw.
+
 2026-03-30  Bruno Haible  <bruno@clisp.org>
 
        renameatu tests: Enhance test of the RENAME_* macros.
index dc388de27b558ef50533167c8a0f228da1803d4f..3679734775f5d1ddbee2b08e6de08421f7782c5a 100644 (file)
@@ -1,5 +1,5 @@
 # fenv-exceptions-trapping.m4
-# serial 3
+# serial 4
 dnl Copyright (C) 2023-2026 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -20,6 +20,7 @@ AC_DEFUN_ONCE([gl_FENV_EXCEPTIONS_TRAPPING],
     dnl Fixed through
     dnl <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=302949e2940a9da3f6364a1574619e621b7e1e71>.
     dnl Similarly on FreeBSD 12.2/arm, FreeBSD 12.2/arm64, NetBSD 10.0/arm64.
+    dnl On mingw 14.0.0, feenableexcept and fedisableexcept are broken as well.
     case "$host" in
       aarch64*-*-linux*)
         AC_CACHE_CHECK([whether feenableexcept works],
@@ -43,7 +44,8 @@ AC_DEFUN_ONCE([gl_FENV_EXCEPTIONS_TRAPPING],
           *) REPLACE_FEENABLEEXCEPT=1 ;;
         esac
         ;;
-      arm*-*-freebsd* | aarch64*-*-freebsd* | aarch64*-*-netbsd*)
+      arm*-*-freebsd* | aarch64*-*-freebsd* | aarch64*-*-netbsd* | \
+      *-*-mingw* | *-*-windows*)
         REPLACE_FEENABLEEXCEPT=1
         ;;
     esac