python3.11/fix-attribute-e2k.patch
2023-04-20 00:20:40 +03:00

13 lines
452 B
Diff

diff --git a/Modules/faulthandler.c b/Modules/faulthandler.c
index 230cde4..ccb8fa6 100644
--- a/Modules/faulthandler.c
+++ b/Modules/faulthandler.c
@@ -1152,7 +1152,7 @@
#if defined(FAULTHANDLER_USE_ALT_STACK)
#define FAULTHANDLER_STACK_OVERFLOW
-static uintptr_t
+__attribute__((optimize(0))) static uintptr_t
stack_overflow(uintptr_t min_sp, uintptr_t max_sp, size_t *depth)
{
/* Allocate (at least) 4096 bytes on the stack at each call.