From 49fb75c676bd422b03aef9824d1abca1e9d90193 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sat, 22 Mar 2025 00:37:49 +0100 Subject: gh-131238: Add missing pycore_function.h includes for JIT compiler (#131571) --- Python/jit.c | 1 + Python/optimizer.c | 1 + Tools/jit/template.c | 7 ++++--- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Python/jit.c b/Python/jit.c index 1f4873e..8a91d2f 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 e2fe0f6..8e9d225 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 adc08f3..bc18e70 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" -- cgit v0.12