decl.c (promote_object_alignment): New function taken from...
authorEric Botcazou <ebotcazou@adacore.com>
Sat, 9 Sep 2017 12:29:08 +0000 (12:29 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sat, 9 Sep 2017 12:29:08 +0000 (12:29 +0000)
commit89ec98ed7ecf0a52175726cca867d471fcad9811
tree69c068c8f67a967e86f534a73ae17a418845d075
parent7f46ecf6dcc9047bf659932990e55759a00978c0
decl.c (promote_object_alignment): New function taken from...

* 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.

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