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.
-- 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);