|
|
|
|
|
by mbauman
1387 days ago
|
|
I wholeheartedly disagree. -Ofast
Disregard strict standards compliance. ...
There's strict standards compliance and then there's the crazy grab bag of code changes that is `-ffast-math`. Further, I'd say gevent can defensibly say that -ffast-math is okay for them given what the manual says: -ffast-math
... it can result in incorrect output for programs that depend on an exact
implementation of IEEE or ISO rules/specifications for math functions.
It may, however, yield faster code for programs that do not require the
guarantees of these specifications.
This is 100% on the compiler people. For the option name, the documentation, and the behavior.https://gcc.gnu.org/onlinedocs/gcc-12.2.0/gcc/Optimize-Optio... |
|
That said, I don't see why the -Ofast option even needs to exist, except backwards compatibility, as -ffast-math and the others can (and should IMO) be specified explicitly.