-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make check fails with -Ofast #1
Comments
With both gcc and clang the build passes with |
This patch hides the issue. There might be more issues hiding behind preprocessor conditionals. Lines 1264 to 1327 in b34e724
Lines 427 to 450 in b34e724
|
orbea
added a commit
that referenced
this issue
Aug 9, 2022
With -Ofast which enables -funsafe-math-optimizations the value of integerNumber becomes 0.0 instead of 1.0 which breaks the logic and regression test program. Adding espilonCorrection which is also 0.0 prevents the compiler from optimizing the value away. This is part of issue #1.
orbea
added a commit
that referenced
this issue
Sep 24, 2022
Workaround for issue #1. Also strio.h is only used by example.c.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
compiler:
gcc (GCC) 11.2.0
+clang version 13.0.0
Trio is broken with
-Ofast
.The text was updated successfully, but these errors were encountered: