[issue41617] __builtin_bswap16 is used without checking it is supported

Joshua Root report at bugs.python.org
Sat Sep 19 00:31:43 EDT 2020


Joshua Root <josh+python at root.id.au> added the comment:

> I'm curious. Can I ask you on which platform do you use clang older than 3.2?

Mac OS X 10.7 / Xcode 4.6.3. I'm not using it personally, but we have automated builds on that platform.

Unfortunately the patch ultimately committed did not fix the build there. Clang reports its version as "Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)". __clang_major__ is 4 and __clang_minor__ is 2.

Apple's versioning scheme is different to that of LLVM upstream, which is one reason why I preferred detecting features directly rather than inserting externally-derived knowledge about which versions provide which features.

Apologies for not getting back to you about this sooner; the notifications appear to have gotten lost.

----------
status: closed -> open

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41617>
_______________________________________


More information about the Python-bugs-list mailing list