decl.c (check_ok_for_atomic): Rename into...
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 22 Dec 2014 10:12:05 +0000 (10:12 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 22 Dec 2014 10:12:05 +0000 (10:12 +0000)
commit86a8ba5b7527ae5df4165567535e67099ab6c52c
tree8824ea17e8726ddd6a9b09469d169971f54db7ad
parent9a1e784ae82f0ebff6d018631d3fe3730359f3c1
decl.c (check_ok_for_atomic): Rename into...

* gcc-interface/decl.c (check_ok_for_atomic): Rename into...
(check_ok_for_atomic_type): ...this.  When checking the mode, also
check that the type is sufficient aligned.  Remove useless code and
tidy up implementation.
(gnat_to_gnu_entity): Adjust to above renaming.
(gnat_to_gnu_component_type): Likewise.
(gnat_to_gnu_field): Likewise.

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