Title: SET_OPCODE_OR_RETURN undefined if configured with --disable-gil · Issue #126513 · python/cpython · GitHub
Open Graph Title: SET_OPCODE_OR_RETURN undefined if configured with --disable-gil · Issue #126513 · python/cpython
X Title: SET_OPCODE_OR_RETURN undefined if configured with --disable-gil · Issue #126513 · python/cpython
Description: Bug report Bug description: The latest commit seems to have broken specialized.c when the GIL is disabled. gcc -c -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -g -O3 -Wall -D_Py_TIER2=1 -D_Py_JIT -std=c11 -Wextra -Wno-...
Open Graph Description: Bug report Bug description: The latest commit seems to have broken specialized.c when the GIL is disabled. gcc -c -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -g -O3 -Wall -D_Py_...
X Description: Bug report Bug description: The latest commit seems to have broken specialized.c when the GIL is disabled. gcc -c -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -g -O3 -Wall -D_Py_...
Opengraph URL: https://github.com/python/cpython/issues/126513
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SET_OPCODE_OR_RETURN undefined if configured with --disable-gil ","articleBody":"# Bug report\n\n### Bug description:\n\nThe latest commit seems to have broken `specialized.c` when the GIL is disabled.\n\n```\ngcc -c -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -g -O3 -Wall -D_Py_TIER2=1 -D_Py_JIT -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/specialize.o Python/specialize.c\nPython/specialize.c:2801:5: error: call to undeclared function 'SET_OPCODE_OR_RETURN'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]\n 2801 | SET_OPCODE_OR_RETURN(instr, CONTAINS_OP);\n | ^\n1 error generated.\n```\n\nExecute the basic `./configure` and compilation succeeds. Add `--disable-gil` to the configure command line and the above error is generated.\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nLinux, macOS\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-126517\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/smontanaro","@type":"Person","name":"smontanaro"},"datePublished":"2024-11-06T20:22:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/126513/cpython/issues/126513"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:35870852-3412-0c7a-38d2-edb6859a56aa |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9F00:3847EE:D53A22:134021C:6A579762 |
| html-safe-nonce | 47fb1496510495f4acb944b0cf073869f2a34e825048b37c5a6a7828f58d2bf9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjAwOjM4NDdFRTpENTNBMjI6MTM0MDIxQzo2QTU3OTc2MiIsInZpc2l0b3JfaWQiOiIxOTY4MjkyNzc2OTM5MDg4MzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8719beb1bd8097f35cc49ede82de5040a763c30e27b5d51689fc8e5946ad7bba |
| hovercard-subject-tag | issue:2639134012 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/126513/issue_layout |
| twitter:image | https://opengraph.githubassets.com/acdbaf78aaa7f089260c976220423f286c7cd6b5933982dbb79bb9016a987637/python/cpython/issues/126513 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/acdbaf78aaa7f089260c976220423f286c7cd6b5933982dbb79bb9016a987637/python/cpython/issues/126513 |
| og:image:alt | Bug report Bug description: The latest commit seems to have broken specialized.c when the GIL is disabled. gcc -c -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -g -O3 -Wall -D_Py_... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | smontanaro |
| hostname | github.com |
| expected-hostname | github.com |
| None | a87fc68e9bdf22e1c7e48ac6a60b98882f4bb103314b3f26b3460c61fc5441ae |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | a2198d0212ed703af207673eb4d0868d4f867a5b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width