[Ada] Fix bogus error on call to subprogram with incomplete profile
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 23 Dec 2021 15:48:11 +0000 (16:48 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 10 Jan 2022 09:38:47 +0000 (09:38 +0000)
commita42dd9febbbeb328af5b3b6adf4431dd7bcca113
tree3a40c3b4d9b116fc3999bcc6bfd959d4a5088332
parentcc9cd2324922575c1aa1eadf6340c2af47f011c4
[Ada] Fix bogus error on call to subprogram with incomplete profile

gcc/ada/

* gcc-interface/trans.c (Identifier_to_gnu): Use correct subtype.
(elaborate_profile): New function.
(Call_to_gnu): Call it on the formals and the result type before
retrieving the translated result type from the subprogram type.
gcc/ada/gcc-interface/trans.c