From 85e696bf3df23006b941efc9a8b12327ed111844 Mon Sep 17 00:00:00 2001 From: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Date: Tue, 11 Feb 2025 15:51:20 +0800 Subject: [PATCH 1/5] Properly disable tailcall interp in configure --- Lib/test/test_generated_cases.py | 104 ++--- Python/bytecodes.c | 4 +- Python/ceval.c | 6 +- Python/ceval_macros.h | 2 +- Python/generated_cases.c.h | 446 +++++++++++----------- Python/opcode_targets.h | 2 +- Tools/cases_generator/target_generator.py | 2 +- Tools/cases_generator/tier1_generator.py | 2 +- 8 files changed, 284 insertions(+), 284 deletions(-) diff --git a/Lib/test/test_generated_cases.py b/Lib/test/test_generated_cases.py index 0e0f28be6b2af0..90e4d76e8fa8f2 100644 --- a/Lib/test/test_generated_cases.py +++ b/Lib/test/test_generated_cases.py @@ -304,7 +304,7 @@ def test_inst_no_args(self): """ output = """ TARGET(OP) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = OP; (void)(opcode); #endif @@ -326,7 +326,7 @@ def test_inst_one_pop(self): """ output = """ TARGET(OP) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = OP; (void)(opcode); #endif @@ -351,7 +351,7 @@ def test_inst_one_push(self): """ output = """ TARGET(OP) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = OP; (void)(opcode); #endif @@ -377,7 +377,7 @@ def test_inst_one_push_one_pop(self): """ output = """ TARGET(OP) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = OP; (void)(opcode); #endif @@ -404,7 +404,7 @@ def test_binary_op(self): """ output = """ TARGET(OP) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = OP; (void)(opcode); #endif @@ -434,7 +434,7 @@ def test_overlap(self): """ output = """ TARGET(OP) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = OP; (void)(opcode); #endif @@ -466,7 +466,7 @@ def test_predictions(self): """ output = """ TARGET(OP1) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = OP1; (void)(opcode); #endif @@ -481,7 +481,7 @@ def test_predictions(self): } TARGET(OP3) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = OP3; (void)(opcode); #endif @@ -519,7 +519,7 @@ def test_sync_sp(self): """ output = """ TARGET(A) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = A; (void)(opcode); #endif @@ -540,7 +540,7 @@ def test_sync_sp(self): } TARGET(B) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = B; (void)(opcode); #endif @@ -581,7 +581,7 @@ def test_error_if_plain(self): """ output = """ TARGET(OP) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = OP; (void)(opcode); #endif @@ -604,7 +604,7 @@ def test_error_if_plain_with_comment(self): """ output = """ TARGET(OP) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = OP; (void)(opcode); #endif @@ -631,7 +631,7 @@ def test_error_if_pop(self): """ output = """ TARGET(OP) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = OP; (void)(opcode); #endif @@ -666,7 +666,7 @@ def test_error_if_pop_with_result(self): """ output = """ TARGET(OP) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = OP; (void)(opcode); #endif @@ -697,7 +697,7 @@ def test_cache_effect(self): """ output = """ TARGET(OP) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = OP; (void)(opcode); #endif @@ -728,7 +728,7 @@ def test_suppress_dispatch(self): """ output = """ TARGET(OP) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = OP; (void)(opcode); #endif @@ -763,7 +763,7 @@ def test_macro_instruction(self): """ output = """ TARGET(OP) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = OP; (void)(opcode); #endif @@ -804,7 +804,7 @@ def test_macro_instruction(self): } TARGET(OP1) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = OP1; (void)(opcode); #endif @@ -826,7 +826,7 @@ def test_macro_instruction(self): } TARGET(OP3) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = OP3; (void)(opcode); #endif @@ -861,7 +861,7 @@ def test_unused_caches(self): """ output = """ TARGET(OP) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = OP; (void)(opcode); #endif @@ -887,7 +887,7 @@ def test_pseudo_instruction_no_flags(self): """ output = """ TARGET(OP1) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = OP1; (void)(opcode); #endif @@ -910,7 +910,7 @@ def test_pseudo_instruction_with_flags(self): """ output = """ TARGET(OP1) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = OP1; (void)(opcode); #endif @@ -936,7 +936,7 @@ def test_pseudo_instruction_as_sequence(self): """ output = """ TARGET(OP1) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = OP1; (void)(opcode); #endif @@ -947,7 +947,7 @@ def test_pseudo_instruction_as_sequence(self): } TARGET(OP2) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = OP2; (void)(opcode); #endif @@ -968,7 +968,7 @@ def test_array_input(self): """ output = """ TARGET(OP) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = OP; (void)(opcode); #endif @@ -995,7 +995,7 @@ def test_array_output(self): """ output = """ TARGET(OP) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = OP; (void)(opcode); #endif @@ -1027,7 +1027,7 @@ def test_array_input_output(self): """ output = """ TARGET(OP) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = OP; (void)(opcode); #endif @@ -1055,7 +1055,7 @@ def test_array_error_if(self): """ output = """ TARGET(OP) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = OP; (void)(opcode); #endif @@ -1085,7 +1085,7 @@ def test_cond_effect(self): """ output = """ TARGET(OP) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = OP; (void)(opcode); #endif @@ -1130,7 +1130,7 @@ def test_macro_cond_effect(self): """ output = """ TARGET(M) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = M; (void)(opcode); #endif @@ -1178,7 +1178,7 @@ def test_macro_push_push(self): """ output = """ TARGET(M) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = M; (void)(opcode); #endif @@ -1215,7 +1215,7 @@ def test_override_inst(self): """ output = """ TARGET(OP) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = OP; (void)(opcode); #endif @@ -1240,7 +1240,7 @@ def test_override_op(self): """ output = """ TARGET(M) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = M; (void)(opcode); #endif @@ -1261,7 +1261,7 @@ def test_annotated_inst(self): """ output = """ TARGET(OP) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = OP; (void)(opcode); #endif @@ -1283,7 +1283,7 @@ def test_annotated_op(self): """ output = """ TARGET(M) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = M; (void)(opcode); #endif @@ -1323,7 +1323,7 @@ def test_array_of_one(self): """ output = """ TARGET(OP) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = OP; (void)(opcode); #endif @@ -1349,7 +1349,7 @@ def test_pointer_to_stackref(self): """ output = """ TARGET(OP) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = OP; (void)(opcode); #endif @@ -1391,7 +1391,7 @@ def test_unused_named_values(self): """ output = """ TARGET(INST) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = INST; (void)(opcode); #endif @@ -1421,7 +1421,7 @@ def test_used_unused_used(self): """ output = """ TARGET(TEST) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = TEST; (void)(opcode); #endif @@ -1465,7 +1465,7 @@ def test_unused_used_used(self): """ output = """ TARGET(TEST) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = TEST; (void)(opcode); #endif @@ -1508,7 +1508,7 @@ def test_flush(self): """ output = """ TARGET(TEST) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = TEST; (void)(opcode); #endif @@ -1560,7 +1560,7 @@ def test_pop_on_error_peeks(self): """ output = """ TARGET(TEST) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = TEST; (void)(opcode); #endif @@ -1612,7 +1612,7 @@ def test_push_then_error(self): output = """ TARGET(TEST) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = TEST; (void)(opcode); #endif @@ -1657,7 +1657,7 @@ def test_error_if_true(self): """ output = """ TARGET(OP1) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = OP1; (void)(opcode); #endif @@ -1668,7 +1668,7 @@ def test_error_if_true(self): } TARGET(OP2) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = OP2; (void)(opcode); #endif @@ -1729,7 +1729,7 @@ def test_stack_save_reload(self): output = """ TARGET(BALANCED) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = BALANCED; (void)(opcode); #endif @@ -1753,7 +1753,7 @@ def test_stack_reload_only(self): output = """ TARGET(BALANCED) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = BALANCED; (void)(opcode); #endif @@ -1778,7 +1778,7 @@ def test_stack_save_only(self): output = """ TARGET(BALANCED) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = BALANCED; (void)(opcode); #endif @@ -1804,7 +1804,7 @@ def test_instruction_size_macro(self): output = """ TARGET(OP) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = OP; (void)(opcode); #endif @@ -1843,7 +1843,7 @@ def test_escaping_call_next_to_cmacro(self): """ output = """ TARGET(OP) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = OP; (void)(opcode); #endif @@ -1881,7 +1881,7 @@ def test_pystackref_frompyobject_new_next_to_cmacro(self): """ output = """ TARGET(OP) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = OP; (void)(opcode); #endif @@ -1916,7 +1916,7 @@ def test_pop_input(self): """ output = """ TARGET(OP) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = OP; (void)(opcode); #endif diff --git a/Python/bytecodes.c b/Python/bytecodes.c index 703d7ec61ebab3..788aa023d0aa5e 100644 --- a/Python/bytecodes.c +++ b/Python/bytecodes.c @@ -5235,7 +5235,7 @@ dummy_func( } #endif RELOAD_STACK(); -#ifdef Py_TAIL_CALL_INTERP +#if Py_TAIL_CALL_INTERP int opcode; #endif DISPATCH(); @@ -5277,7 +5277,7 @@ dummy_func( assert(!_PyErr_Occurred(tstate)); #endif RELOAD_STACK(); -#ifdef Py_TAIL_CALL_INTERP +#if Py_TAIL_CALL_INTERP int opcode; #endif DISPATCH(); diff --git a/Python/ceval.c b/Python/ceval.c index 1e4f1f3af20aca..49d1d12128bbff 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -764,7 +764,7 @@ _PyObjectArray_Free(PyObject **array, PyObject **scratch) #define PY_EVAL_C_STACK_UNITS 2 -#ifdef Py_TAIL_CALL_INTERP +#if Py_TAIL_CALL_INTERP #include "opcode_targets.h" #include "generated_cases.c.h" #endif @@ -847,7 +847,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int next_instr = frame->instr_ptr; stack_pointer = _PyFrame_GetStackPointer(frame); monitor_throw(tstate, frame, next_instr); -#ifdef Py_TAIL_CALL_INTERP +#if Py_TAIL_CALL_INTERP return _TAIL_CALL_error(frame, stack_pointer, tstate, next_instr, 0); #else goto error; @@ -860,7 +860,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int const _PyUOpInstruction *next_uop = NULL; #endif -#ifdef Py_TAIL_CALL_INTERP +#if Py_TAIL_CALL_INTERP return _TAIL_CALL_start_frame(frame, NULL, tstate, NULL, 0); #else goto start_frame; diff --git a/Python/ceval_macros.h b/Python/ceval_macros.h index 0a4f65feb3b512..0f20be422f13a6 100644 --- a/Python/ceval_macros.h +++ b/Python/ceval_macros.h @@ -73,7 +73,7 @@ #define TAIL_CALL_PARAMS _PyInterpreterFrame *frame, _PyStackRef *stack_pointer, PyThreadState *tstate, _Py_CODEUNIT *next_instr, int oparg #define TAIL_CALL_ARGS frame, stack_pointer, tstate, next_instr, oparg -#ifdef Py_TAIL_CALL_INTERP +#if Py_TAIL_CALL_INTERP // Note: [[clang::musttail]] works for GCC 15, but not __attribute__((musttail)) at the moment. # define Py_MUSTTAIL [[clang::musttail]] # define Py_PRESERVE_NONE_CC __attribute__((preserve_none)) diff --git a/Python/generated_cases.c.h b/Python/generated_cases.c.h index f02e13f5e3fbce..a1da444aafb7b5 100644 --- a/Python/generated_cases.c.h +++ b/Python/generated_cases.c.h @@ -19,7 +19,7 @@ TARGET(BINARY_OP) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = BINARY_OP; (void)(opcode); #endif @@ -75,7 +75,7 @@ } TARGET(BINARY_OP_ADD_FLOAT) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = BINARY_OP_ADD_FLOAT; (void)(opcode); #endif @@ -129,7 +129,7 @@ } TARGET(BINARY_OP_ADD_INT) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = BINARY_OP_ADD_INT; (void)(opcode); #endif @@ -182,7 +182,7 @@ } TARGET(BINARY_OP_ADD_UNICODE) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = BINARY_OP_ADD_UNICODE; (void)(opcode); #endif @@ -235,7 +235,7 @@ } TARGET(BINARY_OP_EXTEND) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = BINARY_OP_EXTEND; (void)(opcode); #endif @@ -291,7 +291,7 @@ } TARGET(BINARY_OP_INPLACE_ADD_UNICODE) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = BINARY_OP_INPLACE_ADD_UNICODE; (void)(opcode); #endif @@ -374,7 +374,7 @@ } TARGET(BINARY_OP_MULTIPLY_FLOAT) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = BINARY_OP_MULTIPLY_FLOAT; (void)(opcode); #endif @@ -428,7 +428,7 @@ } TARGET(BINARY_OP_MULTIPLY_INT) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = BINARY_OP_MULTIPLY_INT; (void)(opcode); #endif @@ -481,7 +481,7 @@ } TARGET(BINARY_OP_SUBSCR_DICT) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = BINARY_OP_SUBSCR_DICT; (void)(opcode); #endif @@ -528,7 +528,7 @@ } TARGET(BINARY_OP_SUBSCR_GETITEM) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = BINARY_OP_SUBSCR_GETITEM; (void)(opcode); #endif @@ -613,7 +613,7 @@ } TARGET(BINARY_OP_SUBSCR_LIST_INT) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = BINARY_OP_SUBSCR_LIST_INT; (void)(opcode); #endif @@ -683,7 +683,7 @@ } TARGET(BINARY_OP_SUBSCR_STR_INT) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = BINARY_OP_SUBSCR_STR_INT; (void)(opcode); #endif @@ -745,7 +745,7 @@ } TARGET(BINARY_OP_SUBSCR_TUPLE_INT) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = BINARY_OP_SUBSCR_TUPLE_INT; (void)(opcode); #endif @@ -803,7 +803,7 @@ } TARGET(BINARY_OP_SUBTRACT_FLOAT) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = BINARY_OP_SUBTRACT_FLOAT; (void)(opcode); #endif @@ -857,7 +857,7 @@ } TARGET(BINARY_OP_SUBTRACT_INT) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = BINARY_OP_SUBTRACT_INT; (void)(opcode); #endif @@ -910,7 +910,7 @@ } TARGET(BINARY_SLICE) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = BINARY_SLICE; (void)(opcode); #endif @@ -970,7 +970,7 @@ } TARGET(BUILD_LIST) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = BUILD_LIST; (void)(opcode); #endif @@ -992,7 +992,7 @@ } TARGET(BUILD_MAP) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = BUILD_MAP; (void)(opcode); #endif @@ -1034,7 +1034,7 @@ } TARGET(BUILD_SET) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = BUILD_SET; (void)(opcode); #endif @@ -1082,7 +1082,7 @@ } TARGET(BUILD_SLICE) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = BUILD_SLICE; (void)(opcode); #endif @@ -1112,7 +1112,7 @@ } TARGET(BUILD_STRING) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = BUILD_STRING; (void)(opcode); #endif @@ -1149,7 +1149,7 @@ } TARGET(BUILD_TUPLE) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = BUILD_TUPLE; (void)(opcode); #endif @@ -1171,7 +1171,7 @@ } TARGET(CACHE) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = CACHE; (void)(opcode); #endif @@ -1184,7 +1184,7 @@ } TARGET(CALL) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = CALL; (void)(opcode); #endif @@ -1356,7 +1356,7 @@ } TARGET(CALL_ALLOC_AND_ENTER_INIT) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = CALL_ALLOC_AND_ENTER_INIT; (void)(opcode); #endif @@ -1484,7 +1484,7 @@ } TARGET(CALL_BOUND_METHOD_EXACT_ARGS) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = CALL_BOUND_METHOD_EXACT_ARGS; (void)(opcode); #endif @@ -1623,7 +1623,7 @@ } TARGET(CALL_BOUND_METHOD_GENERAL) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = CALL_BOUND_METHOD_GENERAL; (void)(opcode); #endif @@ -1745,7 +1745,7 @@ } TARGET(CALL_BUILTIN_CLASS) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = CALL_BUILTIN_CLASS; (void)(opcode); #endif @@ -1837,7 +1837,7 @@ } TARGET(CALL_BUILTIN_FAST) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = CALL_BUILTIN_FAST; (void)(opcode); #endif @@ -1935,7 +1935,7 @@ } TARGET(CALL_BUILTIN_FAST_WITH_KEYWORDS) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = CALL_BUILTIN_FAST_WITH_KEYWORDS; (void)(opcode); #endif @@ -2034,7 +2034,7 @@ } TARGET(CALL_BUILTIN_O) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = CALL_BUILTIN_O; (void)(opcode); #endif @@ -2130,7 +2130,7 @@ } TARGET(CALL_FUNCTION_EX) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = CALL_FUNCTION_EX; (void)(opcode); #endif @@ -2322,7 +2322,7 @@ } TARGET(CALL_INTRINSIC_1) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = CALL_INTRINSIC_1; (void)(opcode); #endif @@ -2346,7 +2346,7 @@ } TARGET(CALL_INTRINSIC_2) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = CALL_INTRINSIC_2; (void)(opcode); #endif @@ -2377,7 +2377,7 @@ } TARGET(CALL_ISINSTANCE) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = CALL_ISINSTANCE; (void)(opcode); #endif @@ -2438,7 +2438,7 @@ } TARGET(CALL_KW) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = CALL_KW; (void)(opcode); #endif @@ -2609,7 +2609,7 @@ } TARGET(CALL_KW_BOUND_METHOD) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = CALL_KW_BOUND_METHOD; (void)(opcode); #endif @@ -2742,7 +2742,7 @@ } TARGET(CALL_KW_NON_PY) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = CALL_KW_NON_PY; (void)(opcode); #endif @@ -2855,7 +2855,7 @@ } TARGET(CALL_KW_PY) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = CALL_KW_PY; (void)(opcode); #endif @@ -2962,7 +2962,7 @@ } TARGET(CALL_LEN) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = CALL_LEN; (void)(opcode); #endif @@ -3029,7 +3029,7 @@ } TARGET(CALL_LIST_APPEND) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = CALL_LIST_APPEND; (void)(opcode); #endif @@ -3093,7 +3093,7 @@ } TARGET(CALL_METHOD_DESCRIPTOR_FAST) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = CALL_METHOD_DESCRIPTOR_FAST; (void)(opcode); #endif @@ -3197,7 +3197,7 @@ } TARGET(CALL_METHOD_DESCRIPTOR_FAST_WITH_KEYWORDS) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = CALL_METHOD_DESCRIPTOR_FAST_WITH_KEYWORDS; (void)(opcode); #endif @@ -3301,7 +3301,7 @@ } TARGET(CALL_METHOD_DESCRIPTOR_NOARGS) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = CALL_METHOD_DESCRIPTOR_NOARGS; (void)(opcode); #endif @@ -3405,7 +3405,7 @@ } TARGET(CALL_METHOD_DESCRIPTOR_O) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = CALL_METHOD_DESCRIPTOR_O; (void)(opcode); #endif @@ -3511,7 +3511,7 @@ } TARGET(CALL_NON_PY_GENERAL) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = CALL_NON_PY_GENERAL; (void)(opcode); #endif @@ -3614,7 +3614,7 @@ } TARGET(CALL_PY_EXACT_ARGS) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = CALL_PY_EXACT_ARGS; (void)(opcode); #endif @@ -3725,7 +3725,7 @@ } TARGET(CALL_PY_GENERAL) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = CALL_PY_GENERAL; (void)(opcode); #endif @@ -3821,7 +3821,7 @@ } TARGET(CALL_STR_1) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = CALL_STR_1; (void)(opcode); #endif @@ -3894,7 +3894,7 @@ } TARGET(CALL_TUPLE_1) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = CALL_TUPLE_1; (void)(opcode); #endif @@ -3967,7 +3967,7 @@ } TARGET(CALL_TYPE_1) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = CALL_TYPE_1; (void)(opcode); #endif @@ -4011,7 +4011,7 @@ } TARGET(CHECK_EG_MATCH) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = CHECK_EG_MATCH; (void)(opcode); #endif @@ -4066,7 +4066,7 @@ } TARGET(CHECK_EXC_MATCH) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = CHECK_EXC_MATCH; (void)(opcode); #endif @@ -4098,7 +4098,7 @@ } TARGET(CLEANUP_THROW) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = CLEANUP_THROW; (void)(opcode); #endif @@ -4146,7 +4146,7 @@ } TARGET(COMPARE_OP) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = COMPARE_OP; (void)(opcode); #endif @@ -4215,7 +4215,7 @@ } TARGET(COMPARE_OP_FLOAT) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = COMPARE_OP_FLOAT; (void)(opcode); #endif @@ -4267,7 +4267,7 @@ } TARGET(COMPARE_OP_INT) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = COMPARE_OP_INT; (void)(opcode); #endif @@ -4331,7 +4331,7 @@ } TARGET(COMPARE_OP_STR) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = COMPARE_OP_STR; (void)(opcode); #endif @@ -4384,7 +4384,7 @@ } TARGET(CONTAINS_OP) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = CONTAINS_OP; (void)(opcode); #endif @@ -4436,7 +4436,7 @@ } TARGET(CONTAINS_OP_DICT) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = CONTAINS_OP_DICT; (void)(opcode); #endif @@ -4476,7 +4476,7 @@ } TARGET(CONTAINS_OP_SET) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = CONTAINS_OP_SET; (void)(opcode); #endif @@ -4517,7 +4517,7 @@ } TARGET(CONVERT_VALUE) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = CONVERT_VALUE; (void)(opcode); #endif @@ -4549,7 +4549,7 @@ } TARGET(COPY) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = COPY; (void)(opcode); #endif @@ -4568,7 +4568,7 @@ } TARGET(COPY_FREE_VARS) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = COPY_FREE_VARS; (void)(opcode); #endif @@ -4590,7 +4590,7 @@ } TARGET(DELETE_ATTR) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = DELETE_ATTR; (void)(opcode); #endif @@ -4613,7 +4613,7 @@ } TARGET(DELETE_DEREF) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = DELETE_DEREF; (void)(opcode); #endif @@ -4637,7 +4637,7 @@ } TARGET(DELETE_FAST) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = DELETE_FAST; (void)(opcode); #endif @@ -4663,7 +4663,7 @@ } TARGET(DELETE_GLOBAL) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = DELETE_GLOBAL; (void)(opcode); #endif @@ -4689,7 +4689,7 @@ } TARGET(DELETE_NAME) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = DELETE_NAME; (void)(opcode); #endif @@ -4722,7 +4722,7 @@ } TARGET(DELETE_SUBSCR) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = DELETE_SUBSCR; (void)(opcode); #endif @@ -4749,7 +4749,7 @@ } TARGET(DICT_MERGE) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = DICT_MERGE; (void)(opcode); #endif @@ -4782,7 +4782,7 @@ } TARGET(DICT_UPDATE) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = DICT_UPDATE; (void)(opcode); #endif @@ -4819,7 +4819,7 @@ } TARGET(END_ASYNC_FOR) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = END_ASYNC_FOR; (void)(opcode); #endif @@ -4856,7 +4856,7 @@ } TARGET(END_FOR) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = END_FOR; (void)(opcode); #endif @@ -4878,7 +4878,7 @@ } TARGET(END_SEND) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = END_SEND; (void)(opcode); #endif @@ -4900,7 +4900,7 @@ } TARGET(ENTER_EXECUTOR) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = ENTER_EXECUTOR; (void)(opcode); #endif @@ -4939,7 +4939,7 @@ } TARGET(EXIT_INIT_CHECK) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = EXIT_INIT_CHECK; (void)(opcode); #endif @@ -4963,7 +4963,7 @@ } TARGET(EXTENDED_ARG) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = EXTENDED_ARG; (void)(opcode); #endif @@ -4979,7 +4979,7 @@ } TARGET(FORMAT_SIMPLE) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = FORMAT_SIMPLE; (void)(opcode); #endif @@ -5018,7 +5018,7 @@ } TARGET(FORMAT_WITH_SPEC) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = FORMAT_WITH_SPEC; (void)(opcode); #endif @@ -5046,7 +5046,7 @@ } TARGET(FOR_ITER) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = FOR_ITER; (void)(opcode); #endif @@ -5112,7 +5112,7 @@ } TARGET(FOR_ITER_GEN) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = FOR_ITER_GEN; (void)(opcode); #endif @@ -5178,7 +5178,7 @@ } TARGET(FOR_ITER_LIST) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = FOR_ITER_LIST; (void)(opcode); #endif @@ -5239,7 +5239,7 @@ } TARGET(FOR_ITER_RANGE) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = FOR_ITER_RANGE; (void)(opcode); #endif @@ -5294,7 +5294,7 @@ } TARGET(FOR_ITER_TUPLE) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = FOR_ITER_TUPLE; (void)(opcode); #endif @@ -5352,7 +5352,7 @@ } TARGET(GET_AITER) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = GET_AITER; (void)(opcode); #endif @@ -5405,7 +5405,7 @@ } TARGET(GET_ANEXT) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = GET_ANEXT; (void)(opcode); #endif @@ -5429,7 +5429,7 @@ } TARGET(GET_AWAITABLE) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = GET_AWAITABLE; (void)(opcode); #endif @@ -5452,7 +5452,7 @@ } TARGET(GET_ITER) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = GET_ITER; (void)(opcode); #endif @@ -5476,7 +5476,7 @@ } TARGET(GET_LEN) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = GET_LEN; (void)(opcode); #endif @@ -5505,7 +5505,7 @@ } TARGET(GET_YIELD_FROM_ITER) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = GET_YIELD_FROM_ITER; (void)(opcode); #endif @@ -5552,7 +5552,7 @@ } TARGET(IMPORT_FROM) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = IMPORT_FROM; (void)(opcode); #endif @@ -5577,7 +5577,7 @@ } TARGET(IMPORT_NAME) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = IMPORT_NAME; (void)(opcode); #endif @@ -5608,7 +5608,7 @@ } TARGET(INSTRUMENTED_CALL) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = INSTRUMENTED_CALL; (void)(opcode); #endif @@ -5791,7 +5791,7 @@ } TARGET(INSTRUMENTED_CALL_FUNCTION_EX) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = INSTRUMENTED_CALL_FUNCTION_EX; (void)(opcode); #endif @@ -5983,7 +5983,7 @@ } TARGET(INSTRUMENTED_CALL_KW) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = INSTRUMENTED_CALL_KW; (void)(opcode); #endif @@ -6163,7 +6163,7 @@ } TARGET(INSTRUMENTED_END_FOR) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = INSTRUMENTED_END_FOR; (void)(opcode); #endif @@ -6192,7 +6192,7 @@ } TARGET(INSTRUMENTED_END_SEND) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = INSTRUMENTED_END_SEND; (void)(opcode); #endif @@ -6226,7 +6226,7 @@ } TARGET(INSTRUMENTED_FOR_ITER) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = INSTRUMENTED_FOR_ITER; (void)(opcode); #endif @@ -6268,7 +6268,7 @@ } TARGET(INSTRUMENTED_INSTRUCTION) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = INSTRUMENTED_INSTRUCTION; (void)(opcode); #endif @@ -6295,7 +6295,7 @@ } TARGET(INSTRUMENTED_JUMP_BACKWARD) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = INSTRUMENTED_JUMP_BACKWARD; (void)(opcode); #endif @@ -6326,7 +6326,7 @@ } TARGET(INSTRUMENTED_JUMP_FORWARD) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = INSTRUMENTED_JUMP_FORWARD; (void)(opcode); #endif @@ -6340,7 +6340,7 @@ } TARGET(INSTRUMENTED_LINE) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = INSTRUMENTED_LINE; (void)(opcode); #endif @@ -6382,7 +6382,7 @@ } TARGET(INSTRUMENTED_LOAD_SUPER_ATTR) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = INSTRUMENTED_LOAD_SUPER_ATTR; (void)(opcode); #endif @@ -6478,7 +6478,7 @@ } TARGET(INSTRUMENTED_NOT_TAKEN) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = INSTRUMENTED_NOT_TAKEN; (void)(opcode); #endif @@ -6494,7 +6494,7 @@ } TARGET(INSTRUMENTED_POP_ITER) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = INSTRUMENTED_POP_ITER; (void)(opcode); #endif @@ -6516,7 +6516,7 @@ } TARGET(INSTRUMENTED_POP_JUMP_IF_FALSE) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = INSTRUMENTED_POP_JUMP_IF_FALSE; (void)(opcode); #endif @@ -6537,7 +6537,7 @@ } TARGET(INSTRUMENTED_POP_JUMP_IF_NONE) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = INSTRUMENTED_POP_JUMP_IF_NONE; (void)(opcode); #endif @@ -6562,7 +6562,7 @@ } TARGET(INSTRUMENTED_POP_JUMP_IF_NOT_NONE) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = INSTRUMENTED_POP_JUMP_IF_NOT_NONE; (void)(opcode); #endif @@ -6585,7 +6585,7 @@ } TARGET(INSTRUMENTED_POP_JUMP_IF_TRUE) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = INSTRUMENTED_POP_JUMP_IF_TRUE; (void)(opcode); #endif @@ -6606,7 +6606,7 @@ } TARGET(INSTRUMENTED_RESUME) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = INSTRUMENTED_RESUME; (void)(opcode); #endif @@ -6687,7 +6687,7 @@ } TARGET(INSTRUMENTED_RETURN_VALUE) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = INSTRUMENTED_RETURN_VALUE; (void)(opcode); #endif @@ -6737,7 +6737,7 @@ } TARGET(INSTRUMENTED_YIELD_VALUE) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = INSTRUMENTED_YIELD_VALUE; (void)(opcode); #endif @@ -6809,7 +6809,7 @@ } TARGET(INTERPRETER_EXIT) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = INTERPRETER_EXIT; (void)(opcode); #endif @@ -6832,7 +6832,7 @@ } TARGET(IS_OP) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = IS_OP; (void)(opcode); #endif @@ -6855,7 +6855,7 @@ } TARGET(JUMP_BACKWARD) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = JUMP_BACKWARD; (void)(opcode); #endif @@ -6904,7 +6904,7 @@ } TARGET(JUMP_BACKWARD_JIT) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = JUMP_BACKWARD_JIT; (void)(opcode); #endif @@ -6977,7 +6977,7 @@ } TARGET(JUMP_BACKWARD_NO_INTERRUPT) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = JUMP_BACKWARD_NO_INTERRUPT; (void)(opcode); #endif @@ -6995,7 +6995,7 @@ } TARGET(JUMP_BACKWARD_NO_JIT) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = JUMP_BACKWARD_NO_JIT; (void)(opcode); #endif @@ -7031,7 +7031,7 @@ } TARGET(JUMP_FORWARD) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = JUMP_FORWARD; (void)(opcode); #endif @@ -7043,7 +7043,7 @@ } TARGET(LIST_APPEND) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = LIST_APPEND; (void)(opcode); #endif @@ -7065,7 +7065,7 @@ } TARGET(LIST_EXTEND) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = LIST_EXTEND; (void)(opcode); #endif @@ -7106,7 +7106,7 @@ } TARGET(LOAD_ATTR) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = LOAD_ATTR; (void)(opcode); #endif @@ -7190,7 +7190,7 @@ } TARGET(LOAD_ATTR_CLASS) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = LOAD_ATTR_CLASS; (void)(opcode); #endif @@ -7242,7 +7242,7 @@ } TARGET(LOAD_ATTR_CLASS_WITH_METACLASS_CHECK) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = LOAD_ATTR_CLASS_WITH_METACLASS_CHECK; (void)(opcode); #endif @@ -7304,7 +7304,7 @@ } TARGET(LOAD_ATTR_GETATTRIBUTE_OVERRIDDEN) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = LOAD_ATTR_GETATTRIBUTE_OVERRIDDEN; (void)(opcode); #endif @@ -7362,7 +7362,7 @@ } TARGET(LOAD_ATTR_INSTANCE_VALUE) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = LOAD_ATTR_INSTANCE_VALUE; (void)(opcode); #endif @@ -7439,7 +7439,7 @@ } TARGET(LOAD_ATTR_METHOD_LAZY_DICT) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = LOAD_ATTR_METHOD_LAZY_DICT; (void)(opcode); #endif @@ -7496,7 +7496,7 @@ } TARGET(LOAD_ATTR_METHOD_NO_DICT) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = LOAD_ATTR_METHOD_NO_DICT; (void)(opcode); #endif @@ -7542,7 +7542,7 @@ } TARGET(LOAD_ATTR_METHOD_WITH_VALUES) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = LOAD_ATTR_METHOD_WITH_VALUES; (void)(opcode); #endif @@ -7610,7 +7610,7 @@ } TARGET(LOAD_ATTR_MODULE) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = LOAD_ATTR_MODULE; (void)(opcode); #endif @@ -7689,7 +7689,7 @@ } TARGET(LOAD_ATTR_NONDESCRIPTOR_NO_DICT) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = LOAD_ATTR_NONDESCRIPTOR_NO_DICT; (void)(opcode); #endif @@ -7730,7 +7730,7 @@ } TARGET(LOAD_ATTR_NONDESCRIPTOR_WITH_VALUES) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = LOAD_ATTR_NONDESCRIPTOR_WITH_VALUES; (void)(opcode); #endif @@ -7792,7 +7792,7 @@ } TARGET(LOAD_ATTR_PROPERTY) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = LOAD_ATTR_PROPERTY; (void)(opcode); #endif @@ -7887,7 +7887,7 @@ } TARGET(LOAD_ATTR_SLOT) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = LOAD_ATTR_SLOT; (void)(opcode); #endif @@ -7950,7 +7950,7 @@ } TARGET(LOAD_ATTR_WITH_HINT) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = LOAD_ATTR_WITH_HINT; (void)(opcode); #endif @@ -8054,7 +8054,7 @@ } TARGET(LOAD_BUILD_CLASS) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = LOAD_BUILD_CLASS; (void)(opcode); #endif @@ -8084,7 +8084,7 @@ } TARGET(LOAD_COMMON_CONSTANT) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = LOAD_COMMON_CONSTANT; (void)(opcode); #endif @@ -8110,7 +8110,7 @@ } TARGET(LOAD_CONST) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = LOAD_CONST; (void)(opcode); #endif @@ -8147,7 +8147,7 @@ } TARGET(LOAD_CONST_IMMORTAL) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = LOAD_CONST_IMMORTAL; (void)(opcode); #endif @@ -8166,7 +8166,7 @@ } TARGET(LOAD_CONST_MORTAL) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = LOAD_CONST_MORTAL; (void)(opcode); #endif @@ -8184,7 +8184,7 @@ } TARGET(LOAD_DEREF) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = LOAD_DEREF; (void)(opcode); #endif @@ -8208,7 +8208,7 @@ } TARGET(LOAD_FAST) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = LOAD_FAST; (void)(opcode); #endif @@ -8225,7 +8225,7 @@ } TARGET(LOAD_FAST_AND_CLEAR) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = LOAD_FAST_AND_CLEAR; (void)(opcode); #endif @@ -8242,7 +8242,7 @@ } TARGET(LOAD_FAST_CHECK) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = LOAD_FAST_CHECK; (void)(opcode); #endif @@ -8268,7 +8268,7 @@ } TARGET(LOAD_FAST_LOAD_FAST) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = LOAD_FAST_LOAD_FAST; (void)(opcode); #endif @@ -8289,7 +8289,7 @@ } TARGET(LOAD_FROM_DICT_OR_DEREF) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = LOAD_FROM_DICT_OR_DEREF; (void)(opcode); #endif @@ -8334,7 +8334,7 @@ } TARGET(LOAD_FROM_DICT_OR_GLOBALS) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = LOAD_FROM_DICT_OR_GLOBALS; (void)(opcode); #endif @@ -8414,7 +8414,7 @@ } TARGET(LOAD_GLOBAL) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = LOAD_GLOBAL; (void)(opcode); #endif @@ -8468,7 +8468,7 @@ } TARGET(LOAD_GLOBAL_BUILTIN) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = LOAD_GLOBAL_BUILTIN; (void)(opcode); #endif @@ -8552,7 +8552,7 @@ } TARGET(LOAD_GLOBAL_MODULE) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = LOAD_GLOBAL_MODULE; (void)(opcode); #endif @@ -8620,7 +8620,7 @@ } TARGET(LOAD_LOCALS) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = LOAD_LOCALS; (void)(opcode); #endif @@ -8644,7 +8644,7 @@ } TARGET(LOAD_NAME) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = LOAD_NAME; (void)(opcode); #endif @@ -8667,7 +8667,7 @@ } TARGET(LOAD_SMALL_INT) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = LOAD_SMALL_INT; (void)(opcode); #endif @@ -8685,7 +8685,7 @@ } TARGET(LOAD_SPECIAL) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = LOAD_SPECIAL; (void)(opcode); #endif @@ -8726,7 +8726,7 @@ } TARGET(LOAD_SUPER_ATTR) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = LOAD_SUPER_ATTR; (void)(opcode); #endif @@ -8839,7 +8839,7 @@ } TARGET(LOAD_SUPER_ATTR_ATTR) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = LOAD_SUPER_ATTR_ATTR; (void)(opcode); #endif @@ -8890,7 +8890,7 @@ } TARGET(LOAD_SUPER_ATTR_METHOD) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = LOAD_SUPER_ATTR_METHOD; (void)(opcode); #endif @@ -8957,7 +8957,7 @@ } TARGET(MAKE_CELL) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = MAKE_CELL; (void)(opcode); #endif @@ -8980,7 +8980,7 @@ } TARGET(MAKE_FUNCTION) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = MAKE_FUNCTION; (void)(opcode); #endif @@ -9013,7 +9013,7 @@ } TARGET(MAP_ADD) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = MAP_ADD; (void)(opcode); #endif @@ -9046,7 +9046,7 @@ } TARGET(MATCH_CLASS) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = MATCH_CLASS; (void)(opcode); #endif @@ -9090,7 +9090,7 @@ } TARGET(MATCH_KEYS) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = MATCH_KEYS; (void)(opcode); #endif @@ -9118,7 +9118,7 @@ } TARGET(MATCH_MAPPING) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = MATCH_MAPPING; (void)(opcode); #endif @@ -9137,7 +9137,7 @@ } TARGET(MATCH_SEQUENCE) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = MATCH_SEQUENCE; (void)(opcode); #endif @@ -9156,7 +9156,7 @@ } TARGET(NOP) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = NOP; (void)(opcode); #endif @@ -9167,7 +9167,7 @@ } TARGET(NOT_TAKEN) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = NOT_TAKEN; (void)(opcode); #endif @@ -9178,7 +9178,7 @@ } TARGET(POP_EXCEPT) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = POP_EXCEPT; (void)(opcode); #endif @@ -9199,7 +9199,7 @@ } TARGET(POP_ITER) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = POP_ITER; (void)(opcode); #endif @@ -9215,7 +9215,7 @@ } TARGET(POP_JUMP_IF_FALSE) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = POP_JUMP_IF_FALSE; (void)(opcode); #endif @@ -9237,7 +9237,7 @@ } TARGET(POP_JUMP_IF_NONE) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = POP_JUMP_IF_NONE; (void)(opcode); #endif @@ -9275,7 +9275,7 @@ } TARGET(POP_JUMP_IF_NOT_NONE) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = POP_JUMP_IF_NOT_NONE; (void)(opcode); #endif @@ -9313,7 +9313,7 @@ } TARGET(POP_JUMP_IF_TRUE) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = POP_JUMP_IF_TRUE; (void)(opcode); #endif @@ -9335,7 +9335,7 @@ } TARGET(POP_TOP) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = POP_TOP; (void)(opcode); #endif @@ -9351,7 +9351,7 @@ } TARGET(PUSH_EXC_INFO) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = PUSH_EXC_INFO; (void)(opcode); #endif @@ -9380,7 +9380,7 @@ } TARGET(PUSH_NULL) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = PUSH_NULL; (void)(opcode); #endif @@ -9396,7 +9396,7 @@ } TARGET(RAISE_VARARGS) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = RAISE_VARARGS; (void)(opcode); #endif @@ -9427,7 +9427,7 @@ } TARGET(RERAISE) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = RERAISE; (void)(opcode); #endif @@ -9470,7 +9470,7 @@ } TARGET(RESERVED) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = RESERVED; (void)(opcode); #endif @@ -9483,7 +9483,7 @@ } TARGET(RESUME) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = RESUME; (void)(opcode); #endif @@ -9559,7 +9559,7 @@ } TARGET(RESUME_CHECK) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = RESUME_CHECK; (void)(opcode); #endif @@ -9597,7 +9597,7 @@ } TARGET(RETURN_GENERATOR) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = RETURN_GENERATOR; (void)(opcode); #endif @@ -9636,7 +9636,7 @@ } TARGET(RETURN_VALUE) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = RETURN_VALUE; (void)(opcode); #endif @@ -9668,7 +9668,7 @@ } TARGET(SEND) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = SEND; (void)(opcode); #endif @@ -9768,7 +9768,7 @@ } TARGET(SEND_GEN) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = SEND_GEN; (void)(opcode); #endif @@ -9838,7 +9838,7 @@ } TARGET(SETUP_ANNOTATIONS) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = SETUP_ANNOTATIONS; (void)(opcode); #endif @@ -9885,7 +9885,7 @@ } TARGET(SET_ADD) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = SET_ADD; (void)(opcode); #endif @@ -9910,7 +9910,7 @@ } TARGET(SET_FUNCTION_ATTRIBUTE) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = SET_FUNCTION_ATTRIBUTE; (void)(opcode); #endif @@ -9938,7 +9938,7 @@ } TARGET(SET_UPDATE) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = SET_UPDATE; (void)(opcode); #endif @@ -9963,7 +9963,7 @@ } TARGET(STORE_ATTR) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = STORE_ATTR; (void)(opcode); #endif @@ -10014,7 +10014,7 @@ } TARGET(STORE_ATTR_INSTANCE_VALUE) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = STORE_ATTR_INSTANCE_VALUE; (void)(opcode); #endif @@ -10090,7 +10090,7 @@ } TARGET(STORE_ATTR_SLOT) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = STORE_ATTR_SLOT; (void)(opcode); #endif @@ -10141,7 +10141,7 @@ } TARGET(STORE_ATTR_WITH_HINT) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = STORE_ATTR_WITH_HINT; (void)(opcode); #endif @@ -10241,7 +10241,7 @@ } TARGET(STORE_DEREF) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = STORE_DEREF; (void)(opcode); #endif @@ -10260,7 +10260,7 @@ } TARGET(STORE_FAST) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = STORE_FAST; (void)(opcode); #endif @@ -10280,7 +10280,7 @@ } TARGET(STORE_FAST_LOAD_FAST) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = STORE_FAST_LOAD_FAST; (void)(opcode); #endif @@ -10303,7 +10303,7 @@ } TARGET(STORE_FAST_STORE_FAST) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = STORE_FAST_STORE_FAST; (void)(opcode); #endif @@ -10334,7 +10334,7 @@ } TARGET(STORE_GLOBAL) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = STORE_GLOBAL; (void)(opcode); #endif @@ -10357,7 +10357,7 @@ } TARGET(STORE_NAME) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = STORE_NAME; (void)(opcode); #endif @@ -10397,7 +10397,7 @@ } TARGET(STORE_SLICE) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = STORE_SLICE; (void)(opcode); #endif @@ -10451,7 +10451,7 @@ } TARGET(STORE_SUBSCR) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = STORE_SUBSCR; (void)(opcode); #endif @@ -10502,7 +10502,7 @@ } TARGET(STORE_SUBSCR_DICT) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = STORE_SUBSCR_DICT; (void)(opcode); #endif @@ -10543,7 +10543,7 @@ } TARGET(STORE_SUBSCR_LIST_INT) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = STORE_SUBSCR_LIST_INT; (void)(opcode); #endif @@ -10609,7 +10609,7 @@ } TARGET(SWAP) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = SWAP; (void)(opcode); #endif @@ -10628,7 +10628,7 @@ } TARGET(TO_BOOL) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = TO_BOOL; (void)(opcode); #endif @@ -10674,7 +10674,7 @@ } TARGET(TO_BOOL_ALWAYS_TRUE) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = TO_BOOL_ALWAYS_TRUE; (void)(opcode); #endif @@ -10711,7 +10711,7 @@ } TARGET(TO_BOOL_BOOL) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = TO_BOOL_BOOL; (void)(opcode); #endif @@ -10735,7 +10735,7 @@ } TARGET(TO_BOOL_INT) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = TO_BOOL_INT; (void)(opcode); #endif @@ -10770,7 +10770,7 @@ } TARGET(TO_BOOL_LIST) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = TO_BOOL_LIST; (void)(opcode); #endif @@ -10799,7 +10799,7 @@ } TARGET(TO_BOOL_NONE) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = TO_BOOL_NONE; (void)(opcode); #endif @@ -10827,7 +10827,7 @@ } TARGET(TO_BOOL_STR) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = TO_BOOL_STR; (void)(opcode); #endif @@ -10863,7 +10863,7 @@ } TARGET(UNARY_INVERT) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = UNARY_INVERT; (void)(opcode); #endif @@ -10886,7 +10886,7 @@ } TARGET(UNARY_NEGATIVE) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = UNARY_NEGATIVE; (void)(opcode); #endif @@ -10909,7 +10909,7 @@ } TARGET(UNARY_NOT) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = UNARY_NOT; (void)(opcode); #endif @@ -10927,7 +10927,7 @@ } TARGET(UNPACK_EX) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = UNPACK_EX; (void)(opcode); #endif @@ -10952,7 +10952,7 @@ } TARGET(UNPACK_SEQUENCE) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = UNPACK_SEQUENCE; (void)(opcode); #endif @@ -11001,7 +11001,7 @@ } TARGET(UNPACK_SEQUENCE_LIST) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = UNPACK_SEQUENCE_LIST; (void)(opcode); #endif @@ -11048,7 +11048,7 @@ } TARGET(UNPACK_SEQUENCE_TUPLE) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = UNPACK_SEQUENCE_TUPLE; (void)(opcode); #endif @@ -11086,7 +11086,7 @@ } TARGET(UNPACK_SEQUENCE_TWO_TUPLE) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = UNPACK_SEQUENCE_TWO_TUPLE; (void)(opcode); #endif @@ -11125,7 +11125,7 @@ } TARGET(WITH_EXCEPT_START) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = WITH_EXCEPT_START; (void)(opcode); #endif @@ -11183,7 +11183,7 @@ } TARGET(YIELD_VALUE) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = YIELD_VALUE; (void)(opcode); #endif @@ -11367,7 +11367,7 @@ JUMP_TO_LABEL(error); } #endif stack_pointer = _PyFrame_GetStackPointer(frame); - #ifdef Py_TAIL_CALL_INTERP + #if Py_TAIL_CALL_INTERP int opcode; #endif DISPATCH(); @@ -11411,7 +11411,7 @@ JUMP_TO_LABEL(error); assert(!_PyErr_Occurred(tstate)); #endif stack_pointer = _PyFrame_GetStackPointer(frame); - #ifdef Py_TAIL_CALL_INTERP + #if Py_TAIL_CALL_INTERP int opcode; #endif DISPATCH(); diff --git a/Python/opcode_targets.h b/Python/opcode_targets.h index 039a6eee37939a..142fbc33641ef0 100644 --- a/Python/opcode_targets.h +++ b/Python/opcode_targets.h @@ -1,4 +1,4 @@ -#ifndef Py_TAIL_CALL_INTERP +#if !Py_TAIL_CALL_INTERP static void *opcode_targets[256] = { &&TARGET_CACHE, &&TARGET_BINARY_SLICE, diff --git a/Tools/cases_generator/target_generator.py b/Tools/cases_generator/target_generator.py index db028116db93d2..ca151ff640a30c 100644 --- a/Tools/cases_generator/target_generator.py +++ b/Tools/cases_generator/target_generator.py @@ -26,7 +26,7 @@ def write_opcode_targets(analysis: Analysis, out: CWriter) -> None: for name, op in analysis.opmap.items(): if op < 256: targets[op] = f"&&TARGET_{name},\n" - out.emit("#ifndef Py_TAIL_CALL_INTERP\n") + out.emit("#if !Py_TAIL_CALL_INTERP\n") out.emit("static void *opcode_targets[256] = {\n") for target in targets: out.emit(target) diff --git a/Tools/cases_generator/tier1_generator.py b/Tools/cases_generator/tier1_generator.py index 02012fb4172260..dd9faa3587e32b 100644 --- a/Tools/cases_generator/tier1_generator.py +++ b/Tools/cases_generator/tier1_generator.py @@ -229,7 +229,7 @@ def generate_tier1_cases( out.emit(f"TARGET({name}) {{\n") # We need to ifdef it because this breaks platforms # without computed gotos/tail calling. - out.emit(f"#if defined(Py_TAIL_CALL_INTERP)\n") + out.emit(f"#if Py_TAIL_CALL_INTERP\n") out.emit(f"int opcode = {name};\n") out.emit(f"(void)(opcode);\n") out.emit(f"#endif\n") From cf99661728282a51bfdbe3b410656ea295a7b4e1 Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Tue, 11 Feb 2025 07:55:35 +0000 Subject: [PATCH 2/5] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../next/Build/2025-02-11-07-55-28.gh-issue-129989.kaSKlD.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Build/2025-02-11-07-55-28.gh-issue-129989.kaSKlD.rst diff --git a/Misc/NEWS.d/next/Build/2025-02-11-07-55-28.gh-issue-129989.kaSKlD.rst b/Misc/NEWS.d/next/Build/2025-02-11-07-55-28.gh-issue-129989.kaSKlD.rst new file mode 100644 index 00000000000000..118163b1f448a2 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2025-02-11-07-55-28.gh-issue-129989.kaSKlD.rst @@ -0,0 +1 @@ +Fix a bug where the tailcall interpreter was enabled even when built with ``--without-tail-call-interp`` in the configure script. From 49533e1a6aba928f9736eb529c8f08e2ee122a1f Mon Sep 17 00:00:00 2001 From: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Date: Fri, 14 Feb 2025 17:46:50 +0800 Subject: [PATCH 3/5] Address review by Dong-hee --- Python/ceval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/ceval.c b/Python/ceval.c index 9842f00b04a765..08cf3f1ace22f2 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -792,7 +792,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int _Py_EnsureTstateNotNULL(tstate); CALL_STAT_INC(pyeval_calls); -#if USE_COMPUTED_GOTOS && !defined(Py_TAIL_CALL_INTERP) +#if USE_COMPUTED_GOTOS && !Py_TAIL_CALL_INTERP /* Import the static jump table */ #include "opcode_targets.h" #endif From a08ea49df8c4201d79ce48310857bec5dbe11b1d Mon Sep 17 00:00:00 2001 From: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Date: Sat, 15 Feb 2025 21:18:23 +0800 Subject: [PATCH 4/5] fix test --- Lib/test/test_generated_cases.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_generated_cases.py b/Lib/test/test_generated_cases.py index a9653dda178b2a..ff6b566faa4a23 100644 --- a/Lib/test/test_generated_cases.py +++ b/Lib/test/test_generated_cases.py @@ -1756,7 +1756,7 @@ def test_stack_save_reload_paired(self): output = """ TARGET(BALANCED) { - #if defined(Py_TAIL_CALL_INTERP) + #if Py_TAIL_CALL_INTERP int opcode = BALANCED; (void)(opcode); #endif From a309eb18023fbb1945e860d2675c9b26c83f19a8 Mon Sep 17 00:00:00 2001 From: Ken Jin Date: Sun, 16 Feb 2025 01:48:34 +0800 Subject: [PATCH 5/5] Update Misc/NEWS.d/next/Build/2025-02-11-07-55-28.gh-issue-129989.kaSKlD.rst Co-authored-by: Zanie Blue --- .../next/Build/2025-02-11-07-55-28.gh-issue-129989.kaSKlD.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Misc/NEWS.d/next/Build/2025-02-11-07-55-28.gh-issue-129989.kaSKlD.rst b/Misc/NEWS.d/next/Build/2025-02-11-07-55-28.gh-issue-129989.kaSKlD.rst index 118163b1f448a2..1b1e66144ed525 100644 --- a/Misc/NEWS.d/next/Build/2025-02-11-07-55-28.gh-issue-129989.kaSKlD.rst +++ b/Misc/NEWS.d/next/Build/2025-02-11-07-55-28.gh-issue-129989.kaSKlD.rst @@ -1 +1 @@ -Fix a bug where the tailcall interpreter was enabled even when built with ``--without-tail-call-interp`` in the configure script. +Fix a bug where the tailcall interpreter was enabled when ``--without-tail-call-interp`` was provided to the configure script.