Skip to content

gh-158795: Fix unused tracing table warning with --with-tail-call-interp - #158796

Open
lazerg wants to merge 2 commits into
python:mainfrom
lazerg:fix-issue-158795
Open

lazerg wants to merge 2 commits into
python:mainfrom
lazerg:fix-issue-158795

Conversation

@lazerg

@lazerg lazerg commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

instruction_funcptr_tracing_table is only used by ENTER_TRACING() and IS_JIT_TRACING(), and those use it only when _Py_TIER2 is set. Without the JIT the table is never referenced, so GCC warns. The computed goto version, opcode_tracing_targets_table, is already guarded by #if _Py_TIER2. This adds the same guard to the tail calling table in the generator and regenerates the headers.

Fixes #158795

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just a warning, we don't need a blurb.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed in 856d163.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compiler warning: instruction_funcptr_tracing_table defined but not used with --with-tail-call-interp

2 participants