From 14aef5ccea69f54b9c84f2795e033a40d9f8ed0e Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 21 Mar 2025 23:37:17 +0100 Subject: [PATCH] gh-131238: Add missing pycore_function.h includes for JIT compiler --- 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 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"