Emit user subtypes with -fgnat-encodings=minimal
authorEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 23 Jun 2020 15:37:17 +0000 (17:37 +0200)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 23 Jun 2020 16:35:45 +0000 (18:35 +0200)
commitfa0588dbec38b46d88f46229e2f2b94d16ab09ba
tree1a6c6fc071031bee1db527e6c2ba6a764fe9fafe
parentd94d571bf0d42beb90bb36d311b7a4c075c81b94
Emit user subtypes with -fgnat-encodings=minimal

This changes the compiler to emit debug info for user-defined subtypes
with -fgnat-encodings=minimal, as they might be needed by the debugger.

gcc/ada/ChangeLog:
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Set
debug type to the base type and only if the subtype is artificial.
gcc/ada/gcc-interface/decl.c