Skip to content

Commit 85e696b

Browse files
Properly disable tailcall interp in configure
1 parent 516c70d commit 85e696b

File tree

8 files changed

+284
-284
lines changed

8 files changed

+284
-284
lines changed

Lib/test/test_generated_cases.py

Lines changed: 52 additions & 52 deletions
Large diffs are not rendered by default.

Python/bytecodes.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5235,7 +5235,7 @@ dummy_func(
52355235
}
52365236
#endif
52375237
RELOAD_STACK();
5238-
#ifdef Py_TAIL_CALL_INTERP
5238+
#if Py_TAIL_CALL_INTERP
52395239
int opcode;
52405240
#endif
52415241
DISPATCH();
@@ -5277,7 +5277,7 @@ dummy_func(
52775277
assert(!_PyErr_Occurred(tstate));
52785278
#endif
52795279
RELOAD_STACK();
5280-
#ifdef Py_TAIL_CALL_INTERP
5280+
#if Py_TAIL_CALL_INTERP
52815281
int opcode;
52825282
#endif
52835283
DISPATCH();

Python/ceval.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ _PyObjectArray_Free(PyObject **array, PyObject **scratch)
764764
#define PY_EVAL_C_STACK_UNITS 2
765765

766766

767-
#ifdef Py_TAIL_CALL_INTERP
767+
#if Py_TAIL_CALL_INTERP
768768
#include "opcode_targets.h"
769769
#include "generated_cases.c.h"
770770
#endif
@@ -847,7 +847,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
847847
next_instr = frame->instr_ptr;
848848
stack_pointer = _PyFrame_GetStackPointer(frame);
849849
monitor_throw(tstate, frame, next_instr);
850-
#ifdef Py_TAIL_CALL_INTERP
850+
#if Py_TAIL_CALL_INTERP
851851
return _TAIL_CALL_error(frame, stack_pointer, tstate, next_instr, 0);
852852
#else
853853
goto error;
@@ -860,7 +860,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
860860
const _PyUOpInstruction *next_uop = NULL;
861861
#endif
862862

863-
#ifdef Py_TAIL_CALL_INTERP
863+
#if Py_TAIL_CALL_INTERP
864864
return _TAIL_CALL_start_frame(frame, NULL, tstate, NULL, 0);
865865
#else
866866
goto start_frame;

Python/ceval_macros.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
#define TAIL_CALL_PARAMS _PyInterpreterFrame *frame, _PyStackRef *stack_pointer, PyThreadState *tstate, _Py_CODEUNIT *next_instr, int oparg
7474
#define TAIL_CALL_ARGS frame, stack_pointer, tstate, next_instr, oparg
7575

76-
#ifdef Py_TAIL_CALL_INTERP
76+
#if Py_TAIL_CALL_INTERP
7777
// Note: [[clang::musttail]] works for GCC 15, but not __attribute__((musttail)) at the moment.
7878
# define Py_MUSTTAIL [[clang::musttail]]
7979
# define Py_PRESERVE_NONE_CC __attribute__((preserve_none))

0 commit comments

Comments
 (0)