[Ada] AI12-0028-1 Import of variadic C functions
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 3 Mar 2020 17:57:51 +0000 (17:57 +0000)
committerPierre-Marie de Rodat <derodat@adacore.com>
Fri, 19 Jun 2020 08:17:29 +0000 (04:17 -0400)
commitc95f808ddd5046573423c9d1ee148645e5340738
treea99db98e03a04564121575672e8da9a91648c849
parent906a759dcbedb3e56d61824cb7981ea395ca1f07
[Ada] AI12-0028-1 Import of variadic C functions

2020-06-19  Eric Botcazou  <ebotcazou@adacore.com>

gcc/ada/

* gcc-interface/decl.c (gnat_to_gnu_param): Tidy up.
(gnat_to_gnu_subprog_type): For a variadic C function, do not
build unnamed parameters and do not add final void node.
* gcc-interface/misc.c: Include snames.h.
* gcc-interface/trans.c (Attribute_to_gnu): Tidy up.
(Call_to_gnu): Implement support for unnamed parameters in a
variadic C function.
* gcc-interface/utils.c: Include snames.h.
(copy_type): Tidy up.
gcc/ada/gcc-interface/decl.c
gcc/ada/gcc-interface/misc.c
gcc/ada/gcc-interface/trans.c
gcc/ada/gcc-interface/utils.c