-
-
Notifications
You must be signed in to change notification settings - Fork 34.4k
gh-148483: Use Py_GCC_ATTRIBUTE(unused) for stop_tracing label #148481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 6 commits
1bd649e
d629c82
25b0445
30924f4
67d3971
ff75471
cda01d6
4949861
aaba401
b082a45
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,7 @@ | |
| *.cover | ||
| *.iml | ||
| *.o | ||
| *.o.tmp | ||
| *.lto | ||
| *.a | ||
| *.so | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Use Py_GCC_ATTRIBUTE(unused) for stop_tracing label | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -203,6 +203,10 @@ def generate_tier1_labels( | |
| emitter.emit("\n") | ||
| # Emit tail-callable labels as function defintions | ||
| for name, label in analysis.labels.items(): | ||
| if name == 'stop_tracing': | ||
| emitter.emit("#if _Py_TAIL_CALL_INTERP\n") | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is used in the JIT. So you need |
||
| emitter.emit("Py_GCC_ATTRIBUTE((unused))\n") | ||
| emitter.emit("#endif\n") | ||
| emitter.emit(f"LABEL({name})\n") | ||
| storage = Storage(Stack(), [], [], 0, False) | ||
| if label.spilled: | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.