]> gcc.gnu.org Git - gcc.git/commit
[Ada] Use actual types instead of formal types consistently in debug info
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 23 Jun 2022 21:50:18 +0000 (23:50 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 13 Jul 2022 10:01:20 +0000 (10:01 +0000)
commit298bbf3c9be96b4eb158a319bf0ae3dfd18f9e8f
treedb331e0148e6f775e5761bb0f97de2bf4b47f95d
parent45808a572bac3d1585c8b7de829f39a931f3555c
[Ada] Use actual types instead of formal types consistently in debug info

This makes sure that the objects present in instantiations always have the
actual type instead of a local variant of the formal type in the debugging
information generated by the compiler (this was already the case when the
actual type is a record, a protected or a task type).

gcc/ada/

* gcc-interface/decl.cc (Gigi_Cloned_Subtype): New function.
(gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Call it to get the
cloned subtype, if any.
<E_Floating_Point_Subtype>: Likewise.
<E_Array_Subtype>: Likewise.
<E_Record_Subtype>: Likewise.
<E_Access_Subtype>: Likewise.
Deal with all cloned subtypes on the main path.
gcc/ada/gcc-interface/decl.cc
This page took 0.059757 seconds and 6 git commands to generate.