decl.c (rm_size): Take into account the padding in the case of a record type containi...
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 14 Dec 2018 11:08:15 +0000 (11:08 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 14 Dec 2018 11:08:15 +0000 (11:08 +0000)
commit65e0a92b2353927e50a26a3a0628a36aebc85b40
tree597d42039a50841cd13bb9ee091a9ea3f7ad56fb
parentfcdc7fd55df451a405f040733c29b8fe3d20cff1
decl.c (rm_size): Take into account the padding in the case of a record type containing a template.

* gcc-interface/decl.c (rm_size): Take into account the padding in
the case of a record type containing a template.
* gcc-interface/trans.c (Attribute_to_gnu) <Attr_Size>: Likewise.
Do not subtract the padded size for Max_Size_In_Storage_Elements.
<Attr_Descriptor_Size>: Tweak comment.

From-SVN: r267131
gcc/ada/ChangeLog
gcc/ada/gcc-interface/decl.c
gcc/ada/gcc-interface/trans.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/max_size.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/max_size_pkg.ads [new file with mode: 0644]