PR c/82210
commitff5daa97a518b8782b4e95712b9c670f7f46fcdf
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Feb 2018 20:23:58 +0000 (13 20:23 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Feb 2018 20:23:58 +0000 (13 20:23 +0000)
tree92d22bae34f8e96ab555625eb004d08a97d5a9d6
parent0652a5d0d764bbe061e5bc1181cd54147f4ef484
PR c/82210
* stor-layout.c (place_field): For variable length fields, adjust
offset_align afterwards not just based on the field's alignment,
but also on the size.

* gcc.c-torture/execute/pr82210.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@257635 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/stor-layout.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr82210.c [new file with mode: 0644]