From 394ac84df9ecc1556b922c1161503ef74962fe6a Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 15 Nov 2021 17:55:59 +0100 Subject: [PATCH] meson: drop -ffast-math After reading https://simonbyrne.github.io/notes/fastmath/ I think we should drop -ffast-math. The JSON code actually looks for NaN, so the fact it becomes unreliable kinda sucks. Moreover, we don't do any number crunching. We use floating point fields only sporadical for trivial math. Hence the optimization is entirely unnecessary. --- meson.build | 1 - 1 file changed, 1 deletion(-) diff --git a/meson.build b/meson.build index f8b1156455f..cc6981825eb 100644 --- a/meson.build +++ b/meson.build @@ -409,7 +409,6 @@ possible_cc_flags = possible_common_cc_flags + [ '-Werror=missing-declarations', '-Werror=missing-prototypes', '-fdiagnostics-show-option', - '-ffast-math', '-fno-common', '-fno-strict-aliasing', '-fstack-protector', -- 2.47.3