On Tue, Apr 04, 2023 at 11:02:53AM +0200, Florian Weimer wrote:
> * Zbigniew Jędrzejewski-Szmek:
> 
> > And -Ofast is not something that can be enabled as a default build flag,
> > because it leads to surprising and unpredictable behaviour in some
> > cases. (*)
> 
> I assume (*) refers to the the strange-action-at-distance issue.  It was
> recently fixed in GCC:
> 
>   --funsafe-math-optimizations is unexpectedly harmful, especially w/ -shared 
>   <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55522>

I had something different in mind: -Ofast implies -ffast-math which implies
-ffinite-math-only, i.e. no NaNs or Infs in floating point calculations
(and other effects).

https://simonbyrne.github.io/notes/fastmath/

Zbyszek
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to