sigutils
sigutils copied to clipboard
Release optimization options
Currently -O3 -ffast-math -s for release builds. Do we want to throw it ot the window and use -Ofast?
https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html
I completely forgot about -ffast-math (maybe because I always build in debug mode), and now I am worried about it. While nobody actually complained, -ffast-math is a delicate subject in the sense that reorders math instructions in a way that is not completely IEEE-compliant. This may affect stuff like Kahan summations, in which the order is important.
I am leaving this issue open so I do not forget to look into it. But some thorough testing will be necessary here.