decl.c (gnat_to_gnu_entity): Don't generate debug info for inner record types if...
authorPierre-Marie de Rodat <derodat@adacore.com>
Sat, 9 Sep 2017 13:05:40 +0000 (13:05 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sat, 9 Sep 2017 13:05:40 +0000 (13:05 +0000)
commit95b7c2e0c5439e4e9904c5bc4d78e553a4e802c7
tree88b17edddeafc6a440d4364ca02b928d737f82fe
parenta713e7bb72617e88e9b2b64cecaffae7499146fb
decl.c (gnat_to_gnu_entity): Don't generate debug info for inner record types if -fgnat-encodings=minimal.

* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Don't
generate debug info for inner record types if -fgnat-encodings=minimal.
(gnat_to_gnu_entity) <E_Record_Subtype>: Use the ultimate base record
type as the debug type.

From-SVN: r251937
gcc/ada/ChangeLog
gcc/ada/gcc-interface/decl.c
gcc/ada/gcc-interface/utils2.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/debug11.adb
gcc/testsuite/gnat.dg/debug12.adb
gcc/testsuite/gnat.dg/debug13.adb
gcc/testsuite/gnat.dg/debug14.adb [new file with mode: 0644]