re PR libstdc++/65147 (alignment of std::atomic object is not correct)
authorJonathan Wakely <jwakely@redhat.com>
Thu, 9 Apr 2015 11:15:44 +0000 (12:15 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 9 Apr 2015 11:15:44 +0000 (12:15 +0100)
commit4cbaaa459e7f402911bb79fade9ffdac194eae75
tree08378587f17bd9383cc0c800075734789ef3b5a0
parent3ba99d8a035e95aa93eb2fc56739f63c36582213
re PR libstdc++/65147 (alignment of std::atomic object is not correct)

2015-04-09  Jonathan Wakely  <jwakely@redhat.com>
    Richard Henderson  <rth@redhat.com>

PR libstdc++/65147
* include/bits/atomic_base.h (__atomic_base<_ITp>): Increase
alignment.
* include/std/atomic (atomic): For types with a power of two size set
alignment to at least the size.
* testsuite/29_atomics/atomic/60695.cc: Adjust dg-error line number.
* testsuite/29_atomics/atomic/65147.cc: New.
* testsuite/29_atomics/atomic_integral/65147.cc: New.

Co-Authored-By: Richard Henderson <rth@redhat.com>
From-SVN: r221945
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/atomic_base.h
libstdc++-v3/include/std/atomic
libstdc++-v3/testsuite/29_atomics/atomic/60695.cc
libstdc++-v3/testsuite/29_atomics/atomic/65147.cc [new file with mode: 0644]
libstdc++-v3/testsuite/29_atomics/atomic_integral/65147.cc [new file with mode: 0644]