Cygwin and Mingw floating-point fixes.

Andrew Gierth <rhodiumtoad@postgresql.org>

Commit: 72880ac182c8f3769f0be868f77166994282cb2a
Author: Andrew Gierth <rhodiumtoad@postgresql.org>
Date: 2019-02-16T01:50:16Z
Releases: 12.0
Cygwin and Mingw floating-point fixes.

Deal with silent-underflow errors in float4 for cygwin and mingw by
using our strtof() wrapper; deal with misrounding errors by adding
them to the resultmap. Some slight reorganization of declarations was
done to avoid duplicating material between cygwin.h and win32_port.h.

While here, remove from the resultmap all references to
float8-small-is-zero; inspection of cygwin output suggests it's no
longer required there, and the freebsd/netbsd/openbsd entries should
no longer be necessary (these date back to c. 2000). This commit
doesn't remove the file itself nor the documentation references for
it; that will happen in a subsequent commit if all goes well.

Files

PathChange+/−
configure modified +19 −0
configure.in modified +13 −0
src/include/port/cygwin.h modified +8 −0
src/include/port.h modified +5 −0
src/include/port/win32_port.h modified +12 −5
src/port/strtof.c modified +9 −1
src/test/regress/resultmap modified +2 −5