Skip to content

bpo-44060: Enable TARGET labels even when not using computed gotos. - #25949

Closed
smontanaro wants to merge 3 commits into
python:mainfrom
smontanaro:issue44060
Closed

bpo-44060: Enable TARGET labels even when not using computed gotos.#25949
smontanaro wants to merge 3 commits into
python:mainfrom
smontanaro:issue44060

Conversation

@smontanaro

@smontanarosmontanaro commented May 6, 2021

Copy link
Copy Markdown
Contributor

This change enables the TARGET_##op labels even when computed gotos aren't enabled. That generates a bunch of compiler warnings, but the labels allow gdb to break on them.

https://bugs.python.org/issue44060

@smontanaro

Copy link
Copy Markdown
ContributorAuthor

I realize that enabling the more featureful TARGET macro without computed gotos generates compiler warnings. I'm open to suggestions for how to suppress them.

@markshannon

Copy link
Copy Markdown
Member

Did you ever get this to compile without warnings?

@markshannon
markshannon removed their request for review June 16, 2021 13:09
@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actionsgithub-actionsBot added the stale Stale PR or inactive for long period of time. label Jul 17, 2021
@github-actionsgithub-actionsBot removed the stale Stale PR or inactive for long period of time. label Aug 7, 2022
@smontanaro

Copy link
Copy Markdown
ContributorAuthor

Did you ever get this to compile without warnings?

Nope. But I didn't really try too hard (read: not at all)...

I'll try to get this to merge cleanly again, then see about warnings...

smontanaro added a commit to smontanaro/cpython that referenced this pull request Oct 14, 2022
smontanaro added a commit to smontanaro/cpython that referenced this pull request Oct 16, 2022
smontanaro added a commit to smontanaro/cpython that referenced this pull request Oct 16, 2022
smontanaro added a commit to smontanaro/cpython that referenced this pull request Oct 16, 2022
smontanaro added a commit to smontanaro/cpython that referenced this pull request Oct 17, 2022
smontanaro added a commit to smontanaro/cpython that referenced this pull request Oct 17, 2022
smontanaro added a commit to smontanaro/cpython that referenced this pull request Oct 18, 2022
smontanaro added a commit to smontanaro/cpython that referenced this pull request Oct 18, 2022
smontanaro added a commit to smontanaro/cpython that referenced this pull request Oct 19, 2022
smontanaro added a commit to smontanaro/cpython that referenced this pull request Oct 19, 2022
smontanaro added a commit to smontanaro/cpython that referenced this pull request Oct 20, 2022
smontanaro added a commit to smontanaro/cpython that referenced this pull request Oct 21, 2022
smontanaro added a commit to smontanaro/cpython that referenced this pull request Oct 21, 2022
smontanaro added a commit to smontanaro/cpython that referenced this pull request Nov 1, 2022
smontanaro added a commit to smontanaro/cpython that referenced this pull request Nov 1, 2022
@terryjreedy

Copy link
Copy Markdown
Member

To fix the conflict, I believe the stuff between <<<<<< and >>>>>>> should become

#ifdefPy_STATS#defineINSTRUCTION_START(op) \
do { \
frame->prev_instr = next_instr++; \
OPCODE_EXE_INC(op); \
if (_py_stats) _py_stats->opcode_stats[lastopcode].pair_count[op]++; \
lastopcode = op; \
} while (0)
#else#defineINSTRUCTION_START(op) (frame->prev_instr = next_instr++)
#endif#ifUSE_COMPUTED_GOTOS|| defined(Py_DEBUG)
#defineTARGET(op) op: TARGET_##op
#else#defineTARGET(op) op
#endif#ifUSE_COMPUTED_GOTOS#defineDISPATCH_GOTO() goto *opcode_targets[opcode]
#else

@smontanaro
smontanaro deleted the issue44060 branch November 2, 2022 00:55
@smontanaro

smontanaro commented Nov 2, 2022 via email

Copy link
Copy Markdown
ContributorAuthor

smontanaro added a commit to smontanaro/cpython that referenced this pull request Nov 2, 2022
smontanaro added a commit to smontanaro/cpython that referenced this pull request Nov 3, 2022
smontanaro added a commit to smontanaro/cpython that referenced this pull request Nov 3, 2022
smontanaro added a commit to smontanaro/cpython that referenced this pull request Nov 3, 2022
smontanaro added a commit to smontanaro/cpython that referenced this pull request Nov 3, 2022
smontanaro added a commit to smontanaro/cpython that referenced this pull request Nov 20, 2022
smontanaro added a commit to smontanaro/cpython that referenced this pull request Nov 22, 2022
smontanaro added a commit to smontanaro/cpython that referenced this pull request Nov 22, 2022
smontanaro added a commit to smontanaro/cpython that referenced this pull request Nov 22, 2022
Sign up for freeto 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.

6 participants

@smontanaro@markshannon@terryjreedy@the-knights-who-say-ni@ezio-melotti@bedevere-bot