diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2021-03-05 12:45:41 +0100 |
---|---|---|
committer | Eric Botcazou <ebotcazou@adacore.com> | 2021-03-05 12:47:28 +0100 |
commit | 331763de7d4850702a0f67298f36017c73cdb103 (patch) | |
tree | 5f846f661c6a4bd62cfa42e9e2bfc13e7dee8d95 /gcc/ada/init.c | |
parent | e51f67c155c0157df07e7d38daac917f06931220 (diff) | |
download | gcc-331763de7d4850702a0f67298f36017c73cdb103.zip gcc-331763de7d4850702a0f67298f36017c73cdb103.tar.gz gcc-331763de7d4850702a0f67298f36017c73cdb103.tar.bz2 |
Fix build breakage with latest glibc release
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.
Diffstat (limited to 'gcc/ada/init.c')
-rw-r--r-- | gcc/ada/init.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gcc/ada/init.c b/gcc/ada/init.c index e76aa79..3ceb1a3 100644 --- a/gcc/ada/init.c +++ b/gcc/ada/init.c @@ -579,12 +579,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__ |