From: Lennart Poettering Date: Mon, 15 Nov 2021 16:55:59 +0000 (+0100) Subject: meson: drop -ffast-math X-Git-Tag: v250-rc1~254^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=394ac84df9ecc1556b922c1161503ef74962fe6a;p=thirdparty%2Fsystemd.git 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. --- 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',