* gcc-interface/decl.c (promote_object_alignment): New function taken
commit3a1f1b9a79e03b371f2202b4f0b8f2499e448373
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 9 Sep 2017 12:29:08 +0000 (9 12:29 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 9 Sep 2017 12:29:08 +0000 (9 12:29 +0000)
tree69c068c8f67a967e86f534a73ae17a418845d075
parentf6fc680dabdeabf2724efdb84a5a345a5c7bdfc7
* gcc-interface/decl.c (promote_object_alignment): New function taken
from...
(gnat_to_gnu_entity) <E_Variable>: ...here.  Invoke it.
(gnat_to_gnu_field): If the field is Atomic or VFA, invoke it and
create a padding type on success before doing the atomic check.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@251931 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/ChangeLog
gcc/ada/gcc-interface/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/specs/atomic3.ads [new file with mode: 0644]