]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-99337: Fix compile errors with gcc 12 on macOS (GH-99470) (#99638)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 21 Nov 2022 10:22:10 +0000 (02:22 -0800)
committerGitHub <noreply@github.com>
Mon, 21 Nov 2022 10:22:10 +0000 (11:22 +0100)
commitaa067868ec20f7d9b9f4f36b4a9daebfa74efec5
tree1204c9fa24f6dccc6294636a32a250f7bc0b94de
parentf38164481974a5ca643ec9ae19f118d8ad32353f
[3.11] gh-99337: Fix compile errors with gcc 12 on macOS (GH-99470) (#99638)

gh-99337: Fix compile errors with gcc 12 on macOS (GH-99470)

Fix a number of compile errors with GCC-12 on macOS:

1. In pylifecycle.c the compile rejects _Pragma within a declaration
2. posixmodule.c was missing a number of ..._RUNTIME macros for non-clang on macOS
3. _ctypes assumed that __builtin_available is always present on macOS
(cherry picked from commit cdde29dde90947df9bac39c1d19479914fb3db09)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
Misc/NEWS.d/next/Build/2022-11-15-08-40-22.gh-issue-99337.5LoQDE.rst [new file with mode: 0644]
Modules/_ctypes/callbacks.c
Modules/_ctypes/callproc.c
Modules/_ctypes/ctypes.h
Modules/_ctypes/malloc_closure.c
Modules/posixmodule.c
Python/pylifecycle.c