https://github.com/python/cpython/commit/49fb75c676bd422b03aef9824d1abca1e9d90193 commit: 49fb75c676bd422b03aef9824d1abca1e9d90193 branch: main author: Victor Stinner <vstin...@python.org> committer: vstinner <vstin...@python.org> date: 2025-03-21T23:37:49Z summary:
gh-131238: Add missing pycore_function.h includes for JIT compiler (#131571) files: M Python/jit.c M Python/optimizer.c M Tools/jit/template.c diff --git a/Python/jit.c b/Python/jit.c index 1f4873ee63a88f..8a91d2f62a4627 100644 --- a/Python/jit.c +++ b/Python/jit.c @@ -10,6 +10,7 @@ #include "pycore_dict.h" #include "pycore_floatobject.h" #include "pycore_frame.h" +#include "pycore_function.h" #include "pycore_interpframe.h" #include "pycore_intrinsics.h" #include "pycore_list.h" diff --git a/Python/optimizer.c b/Python/optimizer.c index e2fe0f6cff7464..8e9d225bf38caf 100644 --- a/Python/optimizer.c +++ b/Python/optimizer.c @@ -7,6 +7,7 @@ #include "pycore_backoff.h" #include "pycore_bitutils.h" // _Py_popcount32() #include "pycore_code.h" // _Py_GetBaseCodeUnit +#include "pycore_function.h" // _PyFunction_LookupByVersion() #include "pycore_interpframe.h" #include "pycore_object.h" // _PyObject_GC_UNTRACK() #include "pycore_opcode_metadata.h" // _PyOpcode_OpName[] diff --git a/Tools/jit/template.c b/Tools/jit/template.c index adc08f3cc5f2a5..bc18e702eeaa3b 100644 --- a/Tools/jit/template.c +++ b/Tools/jit/template.c @@ -2,13 +2,15 @@ #include "pycore_backoff.h" #include "pycore_call.h" -#include "pycore_ceval.h" #include "pycore_cell.h" +#include "pycore_ceval.h" #include "pycore_code.h" +#include "pycore_descrobject.h" #include "pycore_dict.h" -#include "pycore_floatobject.h" #include "pycore_emscripten_signal.h" +#include "pycore_floatobject.h" #include "pycore_frame.h" +#include "pycore_function.h" #include "pycore_genobject.h" #include "pycore_interpframe.h" #include "pycore_intrinsics.h" @@ -22,7 +24,6 @@ #include "pycore_range.h" #include "pycore_setobject.h" #include "pycore_sliceobject.h" -#include "pycore_descrobject.h" #include "pycore_stackref.h" #include "pycore_tuple.h" #include "pycore_unicodeobject.h" _______________________________________________ Python-checkins mailing list -- python-checkins@python.org To unsubscribe send an email to python-checkins-le...@python.org https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: arch...@mail-archive.com