aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada
diff options
context:
space:
mode:
authorsquirek <squirek@adacore.com>2024-09-12 14:37:49 +0000
committerMarc Poulhiès <dkm@gcc.gnu.org>2024-10-25 11:09:00 +0200
commitc3b0c0b0dc464537924d8641cb33ffa30698e0ee (patch)
treeffb4fa76da803d9a727ddf724e7d5df23186aa92 /gcc/ada
parent2325d653e3790f3ffda9aebf7f7a94f7aacd0bc0 (diff)
downloadgcc-c3b0c0b0dc464537924d8641cb33ffa30698e0ee.zip
gcc-c3b0c0b0dc464537924d8641cb33ffa30698e0ee.tar.gz
gcc-c3b0c0b0dc464537924d8641cb33ffa30698e0ee.tar.bz2
ada: Increase stack size for Windows tasking programs
This patch increases the default tasking stack size for Windows tasking program to 8 mb to avoid use of pragma Linker_Options in the general case. gcc/ada/ChangeLog: * libgnarl/s-taprop__mingw.adb: Modify stack size and update documentation.
Diffstat (limited to 'gcc/ada')
-rw-r--r--gcc/ada/libgnarl/s-taprop__mingw.adb10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/ada/libgnarl/s-taprop__mingw.adb b/gcc/ada/libgnarl/s-taprop__mingw.adb
index 8c7f59f..3c4e4b9 100644
--- a/gcc/ada/libgnarl/s-taprop__mingw.adb
+++ b/gcc/ada/libgnarl/s-taprop__mingw.adb
@@ -68,11 +68,11 @@ package body System.Task_Primitives.Operations is
use System.Win32;
use System.Win32.Ext;
- pragma Link_With ("-Xlinker --stack=0x200000,0x1000");
- -- Change the default stack size (2 MB) for tasking programs on Windows.
- -- This allows about 1000 tasks running at the same time. Note that
- -- we set the stack size for non tasking programs on System unit.
- -- Also note that under Windows XP, we use a Windows XP extension to
+ pragma Link_With ("-Xlinker --stack=0x800000,0x1000");
+ -- Change the default stack size (8 MB) for tasking programs on Windows.
+ -- This allows at least 1000 tasks running at the same time. Note that
+ -- we set the stack size for non tasking programs in the System unit.
+ -- Also note that under Windows, we use a Windows extension to
-- specify the stack size on a per task basis, as done under other OSes.
----------------