]> git.ipfire.org Git - thirdparty/gcc.git/commit
decl.c (gnat_to_gnu_field): Post the error message for parent overlapping on the...
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 22 Dec 2014 10:35:11 +0000 (10:35 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 22 Dec 2014 10:35:11 +0000 (10:35 +0000)
commit35786aad0c7e0ea1987b370a3e69d8730c11ae38
tree7ddf72bf92958ca92d659c5845982019b3cbb3c4
parentae9f434509517d4c6671bc197d0d64ef7cf74cde
decl.c (gnat_to_gnu_field): Post the error message for parent overlapping on the position instead of on the...

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

From-SVN: r219009
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]