Bug report
Bug description:
I've tried to compile CPython with --enable-pystats, but it fails
mkdirbuild&&cdbuild
../configure--with-pydebug--enable-test-modules--enable-pystatsmake-j8
...
Infileincludedfrom ../Include/internal/pycore_interp.h:16,
from ../Include/internal/pycore_runtime.h:19,
from ../Include/internal/pycore_pystate.h:11,
from ../Include/internal/pycore_call.h:11,
from ../Python/ceval.c:9:
../Python/generated_cases.c.h: Infunction ‘_PyEval_EvalFrameDefault’:
../Python/generated_cases.c.h:705:22: error: ‘BINARY_SUBSCR’ undeclared (firstuseinthisfunction); didyoumean ‘BINARY_SLICE’?
705|STAT_INC(BINARY_SUBSCR, hit);
|^~~~~~~~~~~~~
../Include/internal/pycore_code.h:362:76: note: indefinitionofmacro ‘STAT_INC’
362|#define STAT_INC(opname, name) do { if (_Py_stats) _Py_stats->opcode_stats[opname].specialization.name++; } while (0)|^~~~~~
../Python/generated_cases.c.h:705:22: note: eachundeclaredidentifierisreportedonlyonceforeachfunctionitappearsin705|STAT_INC(BINARY_SUBSCR, hit);
|^~~~~~~~~~~~~
../Include/internal/pycore_code.h:362:76: note: indefinitionofmacro ‘STAT_INC’
362|#define STAT_INC(opname, name) do { if (_Py_stats) _Py_stats->opcode_stats[opname].specialization.name++; } while (0)|^~~~~~wth gcc 14.2.0
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs
Bug report
Bug description:
I've tried to compile CPython with
--enable-pystats, but it failswth gcc 14.2.0
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs
BINARY_SUBSCR#131283