[Ada] Fix missing name for access type in generic instantiation
commite2909e105d26a13b860d071f7491923f318f999c
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 19 Jul 2022 18:55:05 +0000 (19 20:55 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 6 Sep 2022 07:14:23 +0000 (6 09:14 +0200)
tree093cedee04857bf1b61248f8c0405f77cd8c8b13
parenta80e0583973cb1664adf663d499c43c0425018b6
[Ada] Fix missing name for access type in generic instantiation

Pointer types aren't named types in C so we need to take extra care in Ada
to make sure that the name of access types is preserved.

gcc/ada/

* gcc-interface/utils.cc (gnat_pushdecl): Preserve named
TYPE_DECLs consistently for all kind of pointer types.
gcc/ada/gcc-interface/utils.cc