[Ada] Disable the creation of the main task secondary stack by the binder
authorPatrick Bernardi <bernardi@adacore.com>
Fri, 25 May 2018 09:04:27 +0000 (09:04 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Fri, 25 May 2018 09:04:27 +0000 (09:04 +0000)
Users can now specify that the binder should not create a secondary stack for
the main (environment) task through the binder switch -Q0. This is useful for
ZFP runtime users who allocate secondary stacks for their application
themselves.

2018-05-25  Patrick Bernardi  <bernardi@adacore.com>

gcc/ada/

* switch-b.adb (Scan_Binder_Switches): binder switch -Q accepts Natural
numbers.

From-SVN: r260731

gcc/ada/ChangeLog
gcc/ada/switch-b.adb

index d1cf7a9b66eb9421ab1dd2580f33bf7b182eb1a2..f3a0f38de6c54c7e1ba7e5d172ad0b17eb08fb6b 100644 (file)
@@ -1,3 +1,8 @@
+2018-05-25  Patrick Bernardi  <bernardi@adacore.com>
+
+       * switch-b.adb (Scan_Binder_Switches): binder switch -Q accepts Natural
+       numbers.
+
 2018-05-25  Doug Rupp  <rupp@adacore.com>
 
        * tracebak.c (aarch64-linux): Implement.
index 68183d53987110d1d4905b5599f7e00429436f31..7649de37ae87b75d9d4847aac547b23c617e8a15 100644 (file)
@@ -399,7 +399,7 @@ package body Switch.B is
             end if;
 
             Ptr := Ptr + 1;
-            Scan_Pos
+            Scan_Nat
               (Switch_Chars, Max, Ptr,
                Quantity_Of_Default_Size_Sec_Stacks, C);