]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix build breakage with latest glibc release
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 5 Mar 2021 11:45:41 +0000 (12:45 +0100)
committerEric Botcazou <ebotcazou@adacore.com>
Fri, 5 Mar 2021 11:53:00 +0000 (12:53 +0100)
gcc/ada/
PR ada/99264
* init.c (__gnat_alternate_sta) [Linux]: Remove preprocessor test on
MINSIGSTKSZ and bump size to 32KB.
* libgnarl/s-osinte__linux.ads (Alternate_Stack_Size): Bump to 32KB.

gcc/ada/init.c
gcc/ada/libgnarl/s-osinte__linux.ads

index 67ea4dc25798bdeeefe961ec6a5306eb063ea28e..54d9ac1417a9775527738039688a400133cd5cf5 100644 (file)
@@ -578,12 +578,8 @@ __gnat_error_handler (int sig, siginfo_t *si ATTRIBUTE_UNUSED, void *ucontext)
 
 #ifndef __ia64__
 #define HAVE_GNAT_ALTERNATE_STACK 1
-/* This must be in keeping with System.OS_Interface.Alternate_Stack_Size.
-   It must be larger than MINSIGSTKSZ and hopefully near 2 * SIGSTKSZ.  */
-# if 16 * 1024 < MINSIGSTKSZ
-#  error "__gnat_alternate_stack too small"
-# endif
-char __gnat_alternate_stack[16 * 1024];
+/* This must be in keeping with System.OS_Interface.Alternate_Stack_Size.  */
+char __gnat_alternate_stack[32 * 1024];
 #endif
 
 #ifdef __XENO__
index 80cb2b2a793ea8efa9447679d27a95e42d4a284b..ef449af33d11e194f9bf959102fe12d7bfc957b6 100644 (file)
@@ -330,7 +330,7 @@ package System.OS_Interface is
    pragma Import (C, Alternate_Stack, "__gnat_alternate_stack");
    --  The alternate signal stack for stack overflows
 
-   Alternate_Stack_Size : constant := 16 * 1024;
+   Alternate_Stack_Size : constant := 32 * 1024;
    --  This must be in keeping with init.c:__gnat_alternate_stack
 
    function Get_Stack_Base (thread : pthread_t) return Address;