From: Bruno Haible Date: Sat, 4 Nov 2023 12:22:08 +0000 (+0100) Subject: fenv: Document an ABI break on MSVC. X-Git-Tag: v1.0~660 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=485d983b7795548fb32b12fbe8370d40789e88c4;p=gnulib.git fenv: Document an ABI break on MSVC. * doc/posix-headers/fenv.texi: Document why fegetround and fesetround are seemingly broken on MSVC. --- diff --git a/ChangeLog b/ChangeLog index 3b327c4c3d..c809e8f010 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2023-11-04 Bruno Haible + + fenv: Document an ABI break on MSVC. + * doc/posix-headers/fenv.texi: Document why fegetround and fesetround + are seemingly broken on MSVC. + 2023-10-31 Bruno Haible fenv-exceptions-trapping: Add tests. diff --git a/doc/posix-headers/fenv.texi b/doc/posix-headers/fenv.texi index 36c636d7db..25e306d579 100644 --- a/doc/posix-headers/fenv.texi +++ b/doc/posix-headers/fenv.texi @@ -14,4 +14,9 @@ FreeBSD 5.2.1, NetBSD 5.0, OpenBSD 3.8, AIX 5.1, IRIX 6.5, Cygwin 1.7.7, MSVC 9. Portability problems not fixed by Gnulib: @itemize +@item +On MSVC, the values of the rounding direction macros have changed: +@c https://github.com/MicrosoftDocs/cpp-docs/issues/4796 +In MSVC 14, @code{FE_UPWARD} is 0x100 and @code{FE_DOWNWARD} is 0x200, +whereas in MSVC 14.30, it's the opposite. @end itemize