Skip to content

gh-129819: Allow tier2/JIT and tailcall #129820

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

Merged
merged 8 commits into from
Feb 12, 2025
Merged
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
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Allow building the JIT with the tailcall interpreter.
2 changes: 1 addition & 1 deletion Python/ceval_macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ do { \
stack_pointer = _PyFrame_GetStackPointer(frame); \
if (next_instr == NULL) { \
next_instr = frame->instr_ptr; \
goto error; \
JUMP_TO_LABEL(error); \
} \
DISPATCH(); \
} while (0)
Expand Down
12 changes: 0 additions & 12 deletions configure

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

13 changes: 0 additions & 13 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -7033,19 +7033,6 @@ fi
],
[AC_MSG_RESULT([no value specified])])

# Do not enable tail-calling interpreter if tier 2 is enabled.
AS_VAR_IF(
[tier2_flags],
[],
[
case "$ac_cv_tail_call" in yes*)
AC_DEFINE([Py_TAIL_CALL_INTERP], [1],
[Define if the C compiler supports efficient proper tail calls.])
esac
],
[]
)


case $ac_sys_system in
AIX*)
Expand Down
2 changes: 1 addition & 1 deletion pyconfig.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -1718,7 +1718,7 @@
/* The version of SunOS/Solaris as reported by `uname -r' without the dot. */
#undef Py_SUNOS_VERSION

/* Define if the C compiler supports efficient proper tail calls. */
/* Define if you want to use tail-calling interpreters in CPython. */
#undef Py_TAIL_CALL_INTERP

/* Define if you want to enable tracing references for debugging purpose */
Expand Down
Loading