gh-112535: Update _Py_ThreadId() to support PowerPC, IBM Z, etc by corona10 · Pull Request #112553 · python/cpython · GitHub
Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Include/object.h
41 changes: 41 additions & 0 deletions configure

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -4541,6 +4541,23 @@ AS_VAR_IF([ac_cv_builtin_atomic], [yes], [
AC_DEFINE(HAVE_BUILTIN_ATOMIC, 1, [Has builtin __atomic_load_n() and __atomic_store_n() functions])
])

AC_CACHE_CHECK([for builtin __builtin_thread_pointer], [ac_cv_builtin_thread_pointer], [
AC_LINK_IFELSE(
[
AC_LANG_SOURCE([[
void *tp;
int main() {
tp = __builtin_thread_pointer();
return 0;
}
]])
],[ac_cv_builtin_thread_pointer=yes],[ac_cv_builtin_thread_pointer=no])
])

AS_VAR_IF([ac_cv_builtin_thread_pointer], [yes], [
AC_DEFINE(HAVE_BUILTIN_THREAD_POINTER, 1, [Has builtin __builtin_thread_pointer])
])

# --with-mimalloc
AC_MSG_CHECKING([for --with-mimalloc])
AC_ARG_WITH([mimalloc],
Expand Down
3 changes: 3 additions & 0 deletions pyconfig.h.in