Closed
Description
Bug report
Link: https://github.com/python/cpython/actions/runs/11333284963/job/31517440086#step:6:1025
Report:
In file included from Python/ceval.c:870:
Python/generated_cases.c.h:5062:13: warning: code will never be executed [-Wunreachable-code]
stack_pointer += -1;
^~~~~~~~~~~~~
Python/generated_cases.c.h:4748:13: warning: code will never be executed [-Wunreachable-code]
stack_pointer += -1;
^~~~~~~~~~~~~
Python/generated_cases.c.h:803:31: warning: code will never be executed [-Wunreachable-code]
clang -c -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -g -O3 -Wall -D_Py_TIER2=1 -D_Py_JIT -flto=thin -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -fprofile-instr-generate -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/codegen.o Python/codegen.c
for (int _i = oparg; --_i >= 0;) {
^~~~~
Python/generated_cases.c.h:689:31: warning: code will never be executed [-Wunreachable-code]
for (int _i = oparg*2; --_i >= 0;) {
^~~~~
This looks like we have two different problems:
- stack manipulations are added after
goto
andreturn
:cpython/Python/generated_cases.c.h
Lines 4747 to 4749 in cc5a225
cpython/Python/generated_cases.c.h
Lines 5061 to 5063 in cc5a225
- some logical? problem with the loop definition
Linked PRs
Metadata
Metadata
Assignees
Labels
The build process and cross-buildThe build process and cross-build(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)An unexpected behavior, bug, or errorAn unexpected behavior, bug, or error