decl.c (gnat_to_gnu_entity): Do not look up the REP part of the base type in advance.
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 19 Jul 2012 15:44:00 +0000 (15:44 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Thu, 19 Jul 2012 15:44:00 +0000 (15:44 +0000)
commit638eeae8042febc7cf5b01b9330558543e874f58
tree0267038b3e69b3d7fa32dd94de5363494d3bd72a
parent9786913b86c31058adf21f8f093a672b9c0170de
decl.c (gnat_to_gnu_entity): Do not look up the REP part of the base type in advance.

* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Do not
look up the REP part of the base type in advance.  Deal with that of
the variant types.
(get_rep_part): Be prepared for record types with fields.

From-SVN: r189666
gcc/ada/ChangeLog
gcc/ada/gcc-interface/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/discr38.adb [new file with mode: 0644]