-
Notifications
You must be signed in to change notification settings - Fork 735
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
Deal with strict aliasing issues (-fstrict-aliasing
vs -fno-strict-aliasing
)
#83
Comments
Hi, did you ever perform any measurements on the above issue, or changed something else? I'm in a similar boat, was wondering how to solve this problem.. |
What is the exact problem you are having? Is it a problem you're having with ring, or a problem with another library? |
some code of mine, but it includes passing |
I see. I've already removed most pointer casts and most uses of unions from this project, ring, so it's unlikely that we will have to do anything more regarding strict aliasing and we can probably remove |
Update:
|
Recently we started building with
-fno-strict-aliasing
because GCC was warning about strict aliasing, e.g. in https://travis-ci.org/briansmith/ring/jobs/103464242:Building with
-fstrict-aliasing
is really dangerous unless we're really sure the code is correct with respect to these issues. We can probably avoid turning it off as most of the C code for which it should matter will eventually be written in Rust.However, we need to at least (a) measure the performance difference, and (b) come up with a plan to address any performance issues we find.
The text was updated successfully, but these errors were encountered: