]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: drop -ffast-math
authorLennart Poettering <lennart@poettering.net>
Mon, 15 Nov 2021 16:55:59 +0000 (17:55 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 15 Nov 2021 21:24:33 +0000 (22:24 +0100)
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

index f8b1156455f4f412a6477d19cb2b45744e403f8f..cc6981825eb9f08db4294a2b2a75c0c0a08dfb1c 100644 (file)
@@ -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',