* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Do not
commit061ad733fd38ec5db6331dc62f5e0a1585e710ad
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 19 Jul 2012 15:44:00 +0000 (19 15:44 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 19 Jul 2012 15:44:00 +0000 (19 15:44 +0000)
tree0267038b3e69b3d7fa32dd94de5363494d3bd72a
parent7bc8959abc04ca1c743d14d6ffa177686f7bbee9
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@189666 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/ChangeLog
gcc/ada/gcc-interface/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/discr38.adb [new file with mode: 0644]