Skip to content

Commit cda01d6

Browse files
authored
Update conditional compilation for tail-call labels
1 parent ff75471 commit cda01d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tools/cases_generator/tier1_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def generate_tier1_labels(
204204
# Emit tail-callable labels as function defintions
205205
for name, label in analysis.labels.items():
206206
if name == 'stop_tracing':
207-
emitter.emit("#if _Py_TAIL_CALL_INTERP\n")
207+
emitter.emit("#if _Py_TAIL_CALL_INTERP && !defined(_Py_TIER2)\n")
208208
emitter.emit("Py_GCC_ATTRIBUTE((unused))\n")
209209
emitter.emit("#endif\n")
210210
emitter.emit(f"LABEL({name})\n")

0 commit comments

Comments
 (0)