Skip to content

Commit 25b0445

Browse files
committed
Wrap attribyte with _Py_TAIL_CALL_INTERP macro check
1 parent d629c82 commit 25b0445

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*.cover
66
*.iml
77
*.o
8+
*.o.tmp
89
*.lto
910
*.a
1011
*.so

Modules/_testinternalcapi/test_cases.c.h

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/generated_cases.c.h

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tools/cases_generator/tier1_generator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,9 @@ 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")
207208
emitter.emit("Py_GCC_ATTRIBUTE((unused)) \n")
209+
emitter.emit("#endif\n")
208210
emitter.emit(f"LABEL({name})\n")
209211
storage = Storage(Stack(), [], [], 0, False)
210212
if label.spilled:

0 commit comments

Comments
 (0)