decl.c (gnat_to_gnu_entity): Rewrite Esize calculation.
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 20 Apr 2009 19:56:48 +0000 (19:56 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 20 Apr 2009 19:56:48 +0000 (19:56 +0000)
commit6e0f0975e5368803451b2642fb4ecc598310a2e4
tree1cf69154bdae6c2bd8d476bdb6d5f490186ef5c2
parentbbbbb16a888987aea0b85ce1133cf1dac4557ecc
decl.c (gnat_to_gnu_entity): Rewrite Esize calculation.

* gcc-interface/decl.c (gnat_to_gnu_entity): Rewrite Esize calculation.
<E_Signed_Integer_Subtype>: Set the RM size on the integer type
before wrapping it up in the record type.  Do not overwrite the
Ada size of the record type with the Esize.

From-SVN: r146452
gcc/ada/ChangeLog
gcc/ada/gcc-interface/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/specs/small_alignment.ads [new file with mode: 0644]