]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] Fix formal parameters list for secondary stack allocation procedure
authorMarc Poulhiès <poulhies@adacore.com>
Mon, 22 Aug 2022 08:25:09 +0000 (10:25 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 6 Sep 2022 07:14:23 +0000 (09:14 +0200)
The introduction of the Alignment parameter for the secondary stack
allocator in previous change was missing the corresponding change in the
Build_Allocate_Deallocate_Proc when creating the formal parameters list.

gcc/ada/

* exp_util.adb (Build_Allocate_Deallocate_Proc): Add
Alignment_Param in the formal list for calls to SS_Allocate.

gcc/ada/exp_util.adb

index 0bc22a4b5a10e19f5098a2ddd2e4bad3ff67c5e6..61395adf1956355ac35e9bb0c3602178924b3c34 100644 (file)
@@ -1293,7 +1293,8 @@ package body Exp_Util is
                --  Gigi expects a different profile in the Secondary_Stack_Pool
                --  case. There must be no uses of the two missing formals
                --  (i.e., Pool_Param and Alignment_Param) in this case.
-               Formal_Params := New_List (Address_Param, Size_Param);
+               Formal_Params := New_List
+                 (Address_Param, Size_Param, Alignment_Param);
             else
                Formal_Params := New_List (
                  Pool_Param, Address_Param, Size_Param, Alignment_Param);