gh-129819: Allow tier2/JIT and tailcall (GH-129820)

This commit is contained in:
Ken Jin 2025-02-13 02:18:36 +08:00 committed by GitHub
parent 11bb08e4ec
commit 1b27f36eb0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 3 additions and 27 deletions

View File

@ -0,0 +1 @@
Allow building the JIT with the tailcall interpreter.

View File

@ -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)

12
configure generated vendored
View File

@ -29284,18 +29284,6 @@ esac
fi
# Do not enable tail-calling interpreter if tier 2 is enabled.
if ${tier2_flags:+false} :
then :
case "$ac_cv_tail_call" in yes*)
printf "%s\n" "#define Py_TAIL_CALL_INTERP 1" >>confdefs.h
esac
fi
case $ac_sys_system in
AIX*)

View File

@ -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*)

View File

@ -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 */