* gcc-interface/decl.c (gnat_to_gnu_component_type): Apply the check
commit75fc22c568ce296729835672383a58792880c0f6
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 Jan 2018 23:36:02 +0000 (10 23:36 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 Jan 2018 23:36:02 +0000 (10 23:36 +0000)
treee261143854165df2a889239587392c9a2348b4c9
parent7c7dce2331735f9096dba44036bd3859bc8ef0c0
* 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.

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