-
Notifications
You must be signed in to change notification settings - Fork 970
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
All Major Linux Compilers miscomplie restrict #585
Comments
|
What does that have to do with anything? Just cause one thing may be broken doesn't mean we should also risk our own stuff being broken. |
Well,
It will take a long time to fix, so just remove |
Thanks for the random comment? Still has no relevance to this issue or the fix. If you're going to try to contribute to Bitcoin projects again, please try to be productive, don't add tangential things just for the sake of it. Further, note that there are no known miscompilation bugs in glibc, especially given the auto-inlining of many relevant functions this seems unlikely to go unnoticed. You may wish to read the original bug reports linked in the first comment. |
This has been fixed in GCC 7, 8 ,9 (>=7.4.1, >= 8.3.1, >= 9.0) and clang 12. Closing because I don't think we want to take further action at this stage. If you don't agree, please don't hesitate to tell us. |
It looks like your project uses the "restrict" keyword. Both GCC since version 5 (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87609) and CLANG for some time (https://bugs.llvm.org/show_bug.cgi?id=39282) can miscompile restrict-tagged pointers especially when called in loops/inlining. Seems "restrict" shouldn't be used in modern C.
The text was updated successfully, but these errors were encountered: