Skip to content
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

bpo-41617: Fix pycore_bitutils.h to support clang 3.0 #22042

Merged
merged 1 commit into from
Sep 1, 2020
Merged

bpo-41617: Fix pycore_bitutils.h to support clang 3.0 #22042

merged 1 commit into from
Sep 1, 2020

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Sep 1, 2020

__builtin_bswap16() is not available in LLVM clang 3.0.

https://bugs.python.org/issue41617

__builtin_bswap16() is not available in LLVM clang 3.0.
@serge-sans-paille
Copy link
Contributor

LGTM

@vstinner vstinner merged commit e6905e4 into python:master Sep 1, 2020
@vstinner vstinner deleted the bswap16_clang branch September 1, 2020 16:25
vstinner added a commit that referenced this pull request Sep 1, 2020
…22044)

__builtin_bswap16() is not available in LLVM clang 3.0.

(cherry picked from commit e6905e4)
&& ((__GNUC__ >= 5) || (__GNUC__ == 4) && (__GNUC_MINOR__ >= 8))) \
|| (defined(__clang__) \
&& (__clang_major__ >= 4 \
|| (__clang_major__ == 3 && __clang_minor__ >= 2))))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately this does not work correctly with Apple's clang, which uses a different versioning scheme. Probably the fix in #21949 should be used instead.

@serge-sans-paille
Copy link
Contributor

serge-sans-paille commented Sep 20, 2020 via email

xzy3 pushed a commit to xzy3/cpython that referenced this pull request Oct 18, 2020
__builtin_bswap16() is not available in LLVM clang 3.0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants