]> git.ipfire.org Git - thirdparty/gcc.git/commit
* gcc-interface/decl.c (rm_size): Take into account the padding in
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 14 Dec 2018 11:08:15 +0000 (11:08 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 14 Dec 2018 11:08:15 +0000 (11:08 +0000)
commit424c340a23b46be7ef5911f65ceac1308f6441c4
tree597d42039a50841cd13bb9ee091a9ea3f7ad56fb
parent1777adb54d4d88aa231b5b3edad71cbb75362020
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@267131 138bc75d-0d04-0410-961f-82ee72b054a4
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]