[Ada] Fix sharing of formal parameters between wrapper spec and body
authorPiotr Trojanek <trojanek@adacore.com>
Tue, 30 Nov 2021 09:51:13 +0000 (10:51 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 5 Jan 2022 11:32:34 +0000 (11:32 +0000)
commita714d2b000ad7798fd1f7b1f73c0295228ec58bd
tree5ad65e9770254cb4359b4735eaca7ef6f7e58a15
parent0f93c574cb78938c7e43b8dc8705ca072f436ab9
[Ada] Fix sharing of formal parameters between wrapper spec and body

gcc/ada/

* exp_ch3.adb (Make_Controlling_Function_Wrappers): Create
distinct copies of parameter lists for spec and body with
Copy_Parameter_List; cleanup.
(Make_Null_Procedure_Specs): Fix style in comments; remove a
potentially unnecessary initialization of a local variable.
gcc/ada/exp_ch3.adb