From: Eric Botcazou Date: Thu, 23 Apr 2026 07:37:18 +0000 (+0200) Subject: i386: Bump STACK_CHECK_PROTECT for 64-bit Windows X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2715f0eaf6aedf42a299fca4bbc791a852e1a27e;p=thirdparty%2Fgcc.git i386: Bump STACK_CHECK_PROTECT for 64-bit Windows This is required for -fstack-check to be able to properly recover from a stack overflow condition on (some configurations of) Windows Server 2025. gcc/ * config/i386/cygming.h (STACK_CHECK_PROTECT): Define. --- diff --git a/gcc/config/i386/cygming.h b/gcc/config/i386/cygming.h index 00d11063c72..6e5a301aee1 100644 --- a/gcc/config/i386/cygming.h +++ b/gcc/config/i386/cygming.h @@ -466,6 +466,8 @@ do { \ /* Static stack checking is supported by means of probes. */ #define STACK_CHECK_STATIC_BUILTIN 1 +#define STACK_CHECK_PROTECT (TARGET_64BIT ? 20 * 1024 : 12 * 1024) + #ifndef HAVE_GAS_ALIGNED_COMM # define HAVE_GAS_ALIGNED_COMM 0 #endif