]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Move -ffast-math defense to float.c and remove the configure check.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 15 Mar 2026 23:34:52 +0000 (19:34 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 15 Mar 2026 23:34:52 +0000 (19:34 -0400)
commit82ff54377e557914d975d22c4847d98d0efa1dac
tree5c26a1bf3a270ae0fb81b6fff33fa13c987e3d67
parentc675d80d7221411689d0f8ab18386d2f517eed0c
Move -ffast-math defense to float.c and remove the configure check.

We had defenses against -ffast-math in timestamp-related files,
which is a pretty obsolete place for them since we've not supported
floating-point timestamps in a long time.  Remove those and instead
put one in float.c, which is still broken by using this switch.
Add some commentary to put more color on why it's a bad idea.

Also remove the check from configure.  That was just there to fail
faster, but it doesn't really seem necessary anymore, and besides
we have no corresponding check in meson.build.

Author: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Suggested-by: Andres Freund <andres@anarazel.de>
Suggested-by: Peter Eisentraut <peter@eisentraut.org>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/abFXfKC8zR0Oclon%40ip-10-97-1-34.eu-west-3.compute.internal
configure
configure.ac
src/backend/utils/adt/date.c
src/backend/utils/adt/float.c
src/backend/utils/adt/timestamp.c
src/interfaces/ecpg/pgtypeslib/interval.c
src/interfaces/ecpg/pgtypeslib/timestamp.c