diff options
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/faulthandler.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Modules/faulthandler.c b/Modules/faulthandler.c index def7b29..9c763ab 100644 --- a/Modules/faulthandler.c +++ b/Modules/faulthandler.c @@ -941,7 +941,14 @@ faulthandler_fatal_error_py(PyObject *self, PyObject *args) } #if defined(HAVE_SIGALTSTACK) && defined(HAVE_SIGACTION) -static Py_uintptr_t +#ifdef __INTEL_COMPILER + /* Issue #23654: Turn off ICC's tail call optimization for the + * stack_overflow generator. ICC turns the recursive tail call into + * a loop. */ +# pragma intel optimization_level 0 +#endif +static +Py_uintptr_t stack_overflow(Py_uintptr_t min_sp, Py_uintptr_t max_sp, size_t *depth) { /* allocate 4096 bytes on the stack at each call */ |