Re: Defend against -ffast-math in meson builds

From: Andres Freund <andres(at)anarazel(dot)de>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com>, Peter Eisentraut <peter(at)eisentraut(dot)org>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Defend against -ffast-math in meson builds
Date: 2026-03-11 17:48:31
Message-ID: dx5yldtsqih2htsd7cz3tfxt5zhuggpeegwllz7wz2r26tll5h@cwhsw4ddfbc5
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2026-03-11 17:49:43 Re: Fix typo 586/686 in atomics/arch-x86.h
Previous Message Jeff Davis 2026-03-11 17:43:54 Re: Change initdb default to the builtin collation provider