Skip to content

Conversation

@smontanaro
Copy link
Contributor

@smontanarosmontanaro commented May 6, 2021

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
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
Member

Did you ever get this to compile without warnings?

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

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
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
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

@smontanarosmontanaro deleted the issue44060 branch November 2, 2022 00:55
@smontanaro
Copy link
ContributorAuthor

smontanaro commented Nov 2, 2022 via email

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