decl.c (gnat_to_gnu_entity): Use a reference to the original type for the type of...
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 10 Jun 2009 12:52:13 +0000 (12:52 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 10 Jun 2009 12:52:13 +0000 (12:52 +0000)
commitc244bf8f9f4d9de03b894af3b2b92b5a16f37359
tree999afe73f28b590fbcd4b25c94a1ce18d342beb5
parentf788ca8980d123476d820104aa0e171df05bfc3d
decl.c (gnat_to_gnu_entity): Use a reference to the original type for the type of the field of the XVS type.

* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Use
a reference to the original type for the type of the field of the
XVS type.
(maybe_pad_type): Likewise.

* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Factor
common predicate and remove redundant setting of TYPE_BY_REFERENCE_P.
Pass correctly typed arguments to create_field_decl.
<E_Record_Subtype>: Set BLKmode for tagged and limited types in the
case of contrained discriminants as well.  Use the padded base type
in the other case as well.  Rename temporary variable.  Tweak test.
Factor common access pattern.  Set GNU_SIZE only once.

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