aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface/trans.cc
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2022-06-23 23:50:18 +0200
committerPierre-Marie de Rodat <derodat@adacore.com>2022-07-13 10:01:20 +0000
commit298bbf3c9be96b4eb158a319bf0ae3dfd18f9e8f (patch)
treedb331e0148e6f775e5761bb0f97de2bf4b47f95d /gcc/ada/gcc-interface/trans.cc
parent45808a572bac3d1585c8b7de829f39a931f3555c (diff)
downloadgcc-298bbf3c9be96b4eb158a319bf0ae3dfd18f9e8f.zip
gcc-298bbf3c9be96b4eb158a319bf0ae3dfd18f9e8f.tar.gz
gcc-298bbf3c9be96b4eb158a319bf0ae3dfd18f9e8f.tar.bz2
[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.
Diffstat (limited to 'gcc/ada/gcc-interface/trans.cc')
0 files changed, 0 insertions, 0 deletions