mirror of
https://github.com/google/brotli.git
synced 2026-07-08 17:56:58 +00:00
Check for __builtin_expect is incorrect for SUN Compiler version for brotli-1.0.5 #248
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rgh-sas on GitHub (Jul 15, 2018).
For brotli-1.0.5 ./c/common/platform.h there is a check to determine if the SUN compiler supports the intrinsic __builtin_expect. The current check is as follows:
This should probably be
Since the Oracle doc states that support for __builtin_expect isn't supported until Oracle Developer Studio 12.6. See the following supporting documentation from Oracle
https://docs.oracle.com/cd/E77782_01/html/E77792/gqexw.html
As a result of the incorrect version check, I'm unable to build brotli-1.0.5 on Solaris using Oracle Developer Studio 12.4 (Sun C 5.13)
@eustas commented on GitHub (Jul 16, 2018):
@nemequ I've checked, it surely seems it should be 5.15.0...
@eustas commented on GitHub (Jul 16, 2018):
Will fix soon.
@rgh-sas commented on GitHub (Jul 16, 2018):
Thanks. Much appreciated.
@nemequ commented on GitHub (Jul 18, 2018):
Interesting. It works on Solaris Studio 12.3 on Linux. It seems that until 12.6, it was just #defined to the expression, so bumping the version to 5.15 shouldn't have any negative effects.
I guess there are some Linux-specific defines in suncc. I'll have to spin up a VM to test Hedley :(
Thanks for tagging me on this, @eustas.
@eustas commented on GitHub (Oct 19, 2018):
Ooops, this fall of my radar. Going to fix ASAP. Thanks for reporting and patience.