Re: Defend against -ffast-math in meson builds - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Defend against -ffast-math in meson builds
Date
Msg-id dx5yldtsqih2htsd7cz3tfxt5zhuggpeegwllz7wz2r26tll5h@cwhsw4ddfbc5
Whole thread
In response to Re: Defend against -ffast-math in meson builds  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Defend against -ffast-math in meson builds
List pgsql-hackers
Hi,

On 2026-03-11 12:45:55 -0400, Tom Lane wrote:
> So no, I don't wanna support this.  But maybe we should move the
> code-level tests out of the datetime files and into utils/float.h
> or some such place.

I think it's probably better to have it in a .c file (maybe float.c), I could
kinda imagine some extension intentionally enabling -ffast-math, because it
does something numerically intensive where the incorrectness doesn't matter.

Greetings,

Andres Freund



pgsql-hackers by date:

Previous
From: Jeff Davis
Date:
Subject: Re: Change initdb default to the builtin collation provider
Next
From: Andres Freund
Date:
Subject: Re: Fix typo 586/686 in atomics/arch-x86.h