]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
i386: Bump STACK_CHECK_PROTECT for 64-bit Windows
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 23 Apr 2026 07:37:18 +0000 (09:37 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Thu, 23 Apr 2026 07:37:18 +0000 (09:37 +0200)
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.

gcc/config/i386/cygming.h

index 00d11063c720b29bac9e0824d41964a4ac239870..6e5a301aee1057dd634f26873c2e378900a1a325 100644 (file)
@@ -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