decl.c (gnat_to_gnu_entity): In type annotation mode...
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 30 Apr 2012 08:31:29 +0000 (08:31 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 30 Apr 2012 08:31:29 +0000 (08:31 +0000)
commitb38086f06abab6f679bc6e63d833b8d853a5e04f
tree344606836405cdc8b8aabc044d626774a697e93e
parentbb358f1cd9fbf80190bfcc77fea21237d6f5a44d
decl.c (gnat_to_gnu_entity): In type annotation mode...

* gcc-interface/decl.c (gnat_to_gnu_entity): In type annotation mode,
do not adjust the size of a tagged type if there is a representation
clause on it.  Otherwise, round the adjustment up to the alignment
of the first field and use the appropriate helper routine.
(maybe_pad_type): Do not warn in type annotation mode on a tagged type.
(gnat_to_gnu_field): Do not error out under the same circumstances.
(annotate_rep): In type annotation mode, do not adjust the offset of
components of a tagged type with representation clause.  Otherwise,
round the adjustment up to the alignment of the first field.

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