From: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Date: Sat, 18 Oct 2025 22:12:55 +0000 (+0100) Subject: restore non-jit builds X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72c22423c8dd92b674ecdab3a1063595cf6add27;p=thirdparty%2FPython%2Fcpython.git restore non-jit builds --- diff --git a/Python/opcode_targets.h b/Python/opcode_targets.h index 299739764919..66abd6d4623e 100644 --- a/Python/opcode_targets.h +++ b/Python/opcode_targets.h @@ -257,6 +257,7 @@ static void *opcode_targets_table[256] = { &&TARGET_INSTRUMENTED_LINE, &&TARGET_ENTER_EXECUTOR, }; +#if _Py_TIER2 static void *opcode_tracing_targets_table[256] = { &&TARGET_TRACING_CACHE, &&TARGET_TRACING_BINARY_SLICE, @@ -515,6 +516,7 @@ static void *opcode_tracing_targets_table[256] = { &&TARGET_TRACING_INSTRUMENTED_LINE, &&TARGET_TRACING_ENTER_EXECUTOR, }; +#endif #else /* _Py_TAIL_CALL_INTERP */ static py_tail_call_funcptr instruction_funcptr_handler_table[256]; diff --git a/Tools/cases_generator/target_generator.py b/Tools/cases_generator/target_generator.py index b6570d202d84..8e5dc10f759a 100644 --- a/Tools/cases_generator/target_generator.py +++ b/Tools/cases_generator/target_generator.py @@ -35,10 +35,12 @@ def write_opcode_targets(analysis: Analysis, out: CWriter) -> None: for name, op in analysis.opmap.items(): if op < 256: targets[op] = f"&&TARGET_TRACING_{name},\n" + out.emit("#if _Py_TIER2\n") out.emit("static void *opcode_tracing_targets_table[256] = {\n") for target in targets: out.emit(target) out.emit("};\n") + out.emit(f"#endif\n") out.emit("#else /* _Py_TAIL_CALL_INTERP */\n") def function_proto(name: str) -> str: