-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Fix the BOLT problem with GCC10. #8495
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2934,8 +2934,10 @@ enum XXH_VECTOR_TYPE /* fake enum */ { | |
&& defined(__OPTIMIZE__) && !defined(__OPTIMIZE_SIZE__) /* respect -O0 and -Os */ | ||
# pragma GCC push_options | ||
# pragma GCC optimize("-O2") | ||
#ifdef HAVE_BOLT | ||
# pragma GCC optimize("no-reorder-blocks-and-partition") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are all of these changes actually needed, or only this one (because it overrides with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agree. Seems -O2 is not necessary here, we should remove this logic. |
||
#endif | ||
#endif | ||
|
||
|
||
#if XXH_VECTOR == XXH_NEON | ||
/* | ||
|
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The flag
-fno-reorder-blocks-and-partition
should be passed to CC throughCFLAGS
in Makefile.