Yesterday I did: > 2026-09-09 Bruno Haible <[email protected]> > > fenv-exceptions-state-c99: Fix configure test (regression 2026-01-16). > * m4/fenv-exceptions-state.m4 (gl_FENV_EXCEPTIONS_STATE): Fix syntax > error in test program.
This causes a test failure of test-fenv-except-state-3 on mingw 14.0.0 (both x86_64 and i386). This patch fixes it. 2026-09-10 Bruno Haible <[email protected]> fenv-exceptions-state-c99: Fix for mingw 14 (regression yesterday). * m4/fenv-exceptions-state.m4 (gl_FENV_EXCEPTIONS_STATE): On mingw, set REPLACE_FESETEXCEPTFLAG to 1, despite l_cv_func_fesetexceptflag_works1 and l_cv_func_fesetexceptflag_works2 being both 'yes'. diff --git a/m4/fenv-exceptions-state.m4 b/m4/fenv-exceptions-state.m4 index 344f9a691e..6a9c67cc9c 100644 --- a/m4/fenv-exceptions-state.m4 +++ b/m4/fenv-exceptions-state.m4 @@ -1,5 +1,5 @@ # fenv-exceptions-state.m4 -# serial 7 +# serial 8 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, @@ -214,6 +214,19 @@ AC_DEFUN([gl_FENV_EXCEPTIONS_STATE] *yes) ;; *) REPLACE_FESETEXCEPTFLAG=1 ;; esac + dnl Additionally, on mingw 14.0.0, the unit test test-fenv-except-state-3 + dnl fails if we don't override fesetexceptflag. + case "$host_os" in + mingw* | windows*) + AC_EGREP_CPP([Problem], [ +#ifdef __MINGW32__ + Problem +#endif + ], + [REPLACE_FESETEXCEPTFLAG=1], + []) + ;; + esac dnl Additionally, on FreeBSD/powerpc64 and NetBSD/powerpc, the unit test dnl test-fenv-except-state-2 fails if we don't override fesetexceptflag. dnl The function fesetexceptflag apparently fails to restore the
