Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w0Jqt-001o7c-1f for pgsql-hackers@arkaria.postgresql.org; Wed, 11 Mar 2026 13:43:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w0Jqr-009DFY-36 for pgsql-hackers@arkaria.postgresql.org; Wed, 11 Mar 2026 13:43:54 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w0Jqr-009DFP-2B for pgsql-hackers@lists.postgresql.org; Wed, 11 Mar 2026 13:43:54 +0000 Received: from fhigh-b5-smtp.messagingengine.com ([202.12.124.156]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w0Jqq-00000001cCg-0xzf for pgsql-hackers@lists.postgresql.org; Wed, 11 Mar 2026 13:43:53 +0000 Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfhigh.stl.internal (Postfix) with ESMTP id D178D7A0070; Wed, 11 Mar 2026 09:43:51 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Wed, 11 Mar 2026 09:43:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1773236631; x=1773323031; bh=C1ZVGBgCKF LxJeEvBfytb4qQniShTKFX04vyP58MzNw=; b=AX7UWIchW+yzLPSF/C47ohztX1 Eooj9Vt5VQPvG4R2V6+Nr7hwDS23YXfQCUeEOvdcZkcABjFdw5MEPp7soIthEEfA JM+9PfHfkwgv8WJl2x8vQOXnHr0DF1ymp8weMwrPKbHCuHrM6VeZHTrbgt62TL2N TtwlfW/JrgTda1BFFZxjLmG6gz9rXDQKQlXVLXL6Fw+CJwFpo+JmGPkKToRGSnwP SR3vo5k0V0xingMZ+H2s8axCkgWDQEWAQgoI3OMVPgdp6Zb7l3UYVrWerOmHhH4+ 1iDfGxnfkX8KpF4jXyEgu0pAk8oEt+WUq12dU6BM49EZ74beaehpXrBgsucw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1773236631; x=1773323031; bh=C1ZVGBgCKFLxJeEvBfytb4qQniShTKFX04v yP58MzNw=; b=oG82JbXRJAQv4/tEIVRslT6zTWGi7HznW7LEZNDgDbdhxTYo0n+ wK3U5Fm1pAl5BbqEiX9VJ9KTaIlYj2dGv9Bl5W5YxAgHPSheB3dGeqjDZXF52MHN LxK8HxjaUlW7lw36XOntIYLgg1O06/bIpgL2Rp7ZUy29345rsEF2uMJ46sdoqGIo UoU1ihH25tPVcRAzaM6dkg52dpzqy5qKW/ZDCtMGZRDabgHQgekZanRW22uxPyk8 sS1+VqIq8KIVMoZC8p5y+5Zqhc1IGmS5BVF+NWegiiZYXnxPjl7ULuP+e4YgAYfN 8wwKwYKr24q+P06BwO8wIDnH4ZUEjMNnJ7A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvkeegtdehucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucenucfjughrpeffhffvvefukfhfgggtuggjsehttdfstd dttddvnecuhfhrohhmpeetnhgurhgvshcuhfhrvghunhguuceorghnughrvghssegrnhgr rhgriigvlhdruggvqeenucggtffrrghtthgvrhhnpeeffffgledvffegtdevlefgtdeggf fhvdekgfegteeiveejkeetudelveejhfeugeenucevlhhushhtvghrufhiiigvpedtnecu rfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvshesrghnrghrrgiivghlrdguvgdpnh gspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepsggvrhht rhgrnhguughrohhuvhhothdrphhgsehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgsh hqlhdqhhgrtghkvghrsheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 11 Mar 2026 09:43:51 -0400 (EDT) Date: Wed, 11 Mar 2026 09:43:51 -0400 From: Andres Freund To: Bertrand Drouvot Cc: pgsql-hackers@lists.postgresql.org Subject: Re: Defend against -ffast-math in meson builds Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2026-03-11 11:52:28 +0000, Bertrand Drouvot wrote: > while working on a patch (not shared yet), I had issues with floating-point and > realized that we don't defend against -ffast-math in meson builds. We defend > against in autoconf (because we don't want fast-math optimizations [1]), so the > attached does the same for meson. I don't find this (nor the autoconf check) particularly likely to be helpful. The most likely way the flag would unintentionally be added would be via the cflags of some dependency - which won't be picked up by the tests. However we do have tests during the builds that should pick it up, in date.c and timestamp.c... Greetings, Andres Freund