Skip to content

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

Merged
vstinner merged 1 commit into
python:masterfrom
vstinner:bswap16_clang
Sep 1, 2020
Merged

bpo-41617: Fix pycore_bitutils.h to support clang 3.0#22042
vstinner merged 1 commit into
python:masterfrom
vstinner:bswap16_clang

Conversation

@vstinner
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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