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
Should not use __attribute__((optimize(…))) #2494
Comments
Thanks for finding that out. The |
@scoder Will Cython be changing the use of the attribute? |
I ask because if it is true that |
Yes, this will change in 0.29. See 9ddac71. |
Do you have an estimate of the 0.29 timeline? |
You can always define the C macro I'd like to release it rather earlier than later, but there is no clear release timeframe. #2499 is the most important open ticket. Once that's solved, and it'll take a couple of person days to get right, I think I'd look into a release. So, expect a couple of weeks. I'll also consider a 0.28.5 release in the meantime that would have this fix. |
Just a FYI that numpy/numpy#11665 adopted defining |
Seeing that this causes actual trouble to projects, I decided to release 0.28.5 with (almost) only this fix. It's uploaded to PyPI. |
Thanks @scoder . |
GCC documentation says this about the
optimize
attribute:In practice,
__attribute__((optimize("Os")))
seems to re-enable strict aliasing, despite-fno-strict-aliasing
specified on command-line:(full build log)
I was going to file a bug against GCC, but then I realized the attribute shouldn't be used in the first place, and there's apparently plenty of bugs about it in GCC Bugzilla already.
The text was updated successfully, but these errors were encountered: