From 9d96e398afe016d4fcc1def0a5ecfa30517e1455 Mon Sep 17 00:00:00 2001 From: Olivier Hainque Date: Wed, 27 Oct 2004 14:28:07 +0200 Subject: [PATCH] s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K instead of 8K... 2004-10-26 Olivier Hainque * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K instead of 8K, to reflect the real potential needs for stack-checking in the ZCX case. From-SVN: r89640 --- gcc/ada/s-parame-linux.adb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/ada/s-parame-linux.adb b/gcc/ada/s-parame-linux.adb index 9b17c158733..694318bf54b 100644 --- a/gcc/ada/s-parame-linux.adb +++ b/gcc/ada/s-parame-linux.adb @@ -6,7 +6,7 @@ -- -- -- B o d y -- -- -- --- Copyright (C) 1995-2003 Free Software Foundation, Inc. -- +-- Copyright (C) 1995-2004 Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- @@ -67,7 +67,11 @@ package body System.Parameters is function Minimum_Stack_Size return Size_Type is begin - return 8 * 1024; + -- 12K is required for stack-checking to work on this target, using the + -- System.Stack_Checking runtime facility and possibly relying on the + -- stack greedy GCC scheme to propagate an exception in the ZCX case. + + return 12 * 1024; end Minimum_Stack_Size; end System.Parameters; -- 2.30.2