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 1w0I7C-001mZV-22 for pgsql-hackers@arkaria.postgresql.org; Wed, 11 Mar 2026 11:52:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w0I79-008n8s-09 for pgsql-hackers@arkaria.postgresql.org; Wed, 11 Mar 2026 11:52:35 +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 1w0I78-008n8j-2M for pgsql-hackers@lists.postgresql.org; Wed, 11 Mar 2026 11:52:35 +0000 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w0I76-00000001bRi-3v7I for pgsql-hackers@lists.postgresql.org; Wed, 11 Mar 2026 11:52:34 +0000 Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-439b8a3f2bcso7957908f8f.3 for ; Wed, 11 Mar 2026 04:52:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773229950; x=1773834750; darn=lists.postgresql.org; h=content-disposition:mime-version:message-id:subject:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=fOwcFYCFtgbPKDFHFhNubI3DKs8O7LnyBmDZ/m97JmU=; b=DPobmTGAgbbLrbs8VCJQb7+5yMItwi90QxjJHjksB+i+D/jJoatPFweXJwoRU9MpCc gVIzE6awOkacVEBGbenlvRjYev9noITkkrg2Q3TE3ByGNld4yYfCFm/oQd+F1unIKgBa s5dz16NMKmlrDDMUAa0cpxam7iUw8z88fq7gapkUFWb53XkdSJpd9RmWkC2qFkYoyMGO yK5HZB7PTZ3IeLiWvbZcs9Wt5RfF0/M919LBg1Y/42yHOMXjrM1XE91zrJUiDzVLWE// tZjcJvQ8/Q9mx9rNmc6VKkmD+7msLnwR2AGRAeIMLPllXkaeCoDZozlU98Mx7wy2U4HO /1UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773229950; x=1773834750; h=content-disposition:mime-version:message-id:subject:to:from:date :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=fOwcFYCFtgbPKDFHFhNubI3DKs8O7LnyBmDZ/m97JmU=; b=N2CXJCqzqyRkLuXyDz8QxDxr+BKl164v6UwygSt0z/VD00mPQtXIwlcx419kMTzweI AdoOXm6650lADl/Rbch5q/4CKVseyayxc6mLcYjIPLouoyER3xqaUeBho3VBb0IvOQAW +NKdu4eR+0Qx/6MjJXz2Ta6ivQ0wh0Re9WCeE3VN6QagoXqt+SmZapVyRzl/x6f1eTjt LyohNQP6Vgy7nz462M7vnr4xOeMeKvyC/Caj8kk/SBLxx7Z6KXzBwMlgu51kW0kUptnZ iVa1szhgaebM4qoR4cfUFI/n0ANGbQJTA5MUPhnq76xWsr0kp7k3vIoV8OGqpV9jJdQB LjdA== X-Gm-Message-State: AOJu0YxHDwSLI5o5IgqgWT1x14DZjA9CtbLh0sIuEt8j660fSB41Vz2G 7VAFQjc7dIaqgPwFhD8XRnjxM0aCsctB+YjRaW05OGjSsz9fzxHaJcdoD4MOJQ== X-Gm-Gg: ATEYQzzFASrHBggvW/reye10m8TNfFwRyAjU5BQ8ihKr7rXIwiu1xzQ+EsIyDefXb1D SH3UorB6zSgiVTIxN0YBHx/QpcfzeVLAkd7w/XyiHpf6ubP81XBKtbhLZV5+0lU9qkvhlkHgaPM hS1MS3iNXNrJY0CLz2s6/4hzNaaBBwZ/iyAVMUDLJwQDDGy0sT9SM6Cev4ajBSVmgwPCij9TLgw AKUCKHbHAkij2D4kS3oVXHpRYcByLXAt/5rFYABcQ1h5z7K3ccLKBgIy3K7qxGVvVEkCT09BGUN WKQvzgBa9RQy/CAbFIF5f+qu9/HBapgymaVFTwDojKqZ+RWqYGkctyNKp6U+iwubrXuYcBzauwk beDM2oHHVzKNImvbw72IKt5NbJQwsWwTbb1TxlEtKC1svh+IGgiwA/RWMWZ7GVtpBD+VKhG8HqH 58sYKj8Ddi3Cz7tDoIgS9yqKIfi2SULWzjNMC/4GHbkUIqvRr0MZ/4FsUj6N6JqYurhVntIyN0F lFQdz9yqlj4J4OIhqyoNpQPlYd4d21USwQEQIxTFc7OLqQ+kMQJawvVRA== X-Received: by 2002:a05:6000:1866:b0:439:ddc0:4bee with SMTP id ffacd0b85a97d-439f81c772emr4534883f8f.16.1773229950136; Wed, 11 Mar 2026 04:52:30 -0700 (PDT) Received: from ip-10-97-1-34.eu-west-3.compute.internal (ec2-15-237-197-144.eu-west-3.compute.amazonaws.com. [15.237.197.144]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-439f820a2f1sm6093982f8f.30.2026.03.11.04.52.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Mar 2026 04:52:29 -0700 (PDT) Date: Wed, 11 Mar 2026 11:52:28 +0000 From: Bertrand Drouvot To: pgsql-hackers@lists.postgresql.org Subject: Defend against -ffast-math in meson builds Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="2VkJiDxXm7NNcRbl" Content-Disposition: inline List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --2VkJiDxXm7NNcRbl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi hackers, 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. [1]: https://postgr.es/m/424007.1644003689%40sss.pgh.pa.us Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com --2VkJiDxXm7NNcRbl Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="v1-0001-Defend-against-ffast-math-in-meson-builds.patch"