decl.c (gnat_to_gnu_component_type): Apply the check for atomic access once the compo...
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 10 Jan 2018 23:36:02 +0000 (23:36 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 10 Jan 2018 23:36:02 +0000 (23:36 +0000)
commitaf95bb266a88d570db1b8bf5d57be430683bf1e9
treee261143854165df2a889239587392c9a2348b4c9
parentbdd82c9b9975a8bca850b99cd5cee75e6ed3c127
decl.c (gnat_to_gnu_component_type): Apply the check for atomic access once the component size is taken into account...

* gcc-interface/decl.c (gnat_to_gnu_component_type): Apply the check
for atomic access once the component size is taken into account and
also do it if the component type is Atomic or Volatile_Full_Access.

From-SVN: r256465
gcc/ada/ChangeLog
gcc/ada/gcc-interface/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/atomic10.adb [new file with mode: 0644]