s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K instead of 8K...
authorOlivier Hainque <hainque@act-europe.fr>
Wed, 27 Oct 2004 12:28:07 +0000 (14:28 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Wed, 27 Oct 2004 12:28:07 +0000 (14:28 +0200)
2004-10-26  Olivier Hainque  <hainque@act-europe.fr>

* 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

index 9b17c1587339d29862958c5ebb6d52468edbb8b1..694318bf54b37019c99528a964f726e9dc2f8077 100644 (file)
@@ -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;