decl.c (gnat_to_gnu_entity): Copy the layout of the record from the parent type only...
authorEric Botcazou <ebotcazou@adacore.com>
Sat, 9 Sep 2017 12:41:19 +0000 (12:41 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sat, 9 Sep 2017 12:41:19 +0000 (12:41 +0000)
commit87eddedc5f9ae385958edd24d9d42981f702ecb2
tree7ec293a0b3b9c586c01489ba5104e89c78378201
parentf4657d60cf7027c595f2df132b6d6c20435077a4
decl.c (gnat_to_gnu_entity): Copy the layout of the record from the parent type only if...

* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Copy the
layout of the record from the parent type only if both are or are not
unchecked unions.
(is_stored_discriminant): Return false for an unchecked union.

From-SVN: r251934
gcc/ada/ChangeLog
gcc/ada/gcc-interface/decl.c