* gcc-interface/decl.c (gnat_to_gnu_field): Post the error message
commitdb8da65b4de666ff83f29c60c075d692376c1a60
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 22 Dec 2014 10:35:11 +0000 (22 10:35 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 22 Dec 2014 10:35:11 +0000 (22 10:35 +0000)
tree7ddf72bf92958ca92d659c5845982019b3cbb3c4
parenta67930ce29900f9d88c1bd98d3a30f9b3125cfe3
* gcc-interface/decl.c (gnat_to_gnu_field): Post the error message
for parent overlapping on the position instead of on the first bit.
For a field that needs strict alignment, issue the error for the
position first and, for the size, issue an error if it is too large
only for the atomic and aliased cases.  Issue a specific error if
the size is not a multiple of a byte in the volatile and the stric
alignment cases.

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