mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-10 01:54:35 +08:00
Fix regression for libstdc++-v3/testsuite/29_atomics/atomic/62259.cc as...
Fix regression for libstdc++-v3/testsuite/29_atomics/atomic/62259.cc as reported at <http://gcc.gnu.org/ml/gcc-patches/2015-04/msg00543.html>. * testsuite/29_atomics/atomic/62259.cc: Assert atomic alignment is larger-equal, not equal, to default alignment. From-SVN: r222072
This commit is contained in:
parent
a2bb9b6bf0
commit
0357625940
@ -1,3 +1,8 @@
|
||||
2015-04-14 Hans-Peter Nilsson <hp@axis.com>
|
||||
|
||||
* testsuite/29_atomics/atomic/62259.cc: Assert atomic
|
||||
alignment is larger-equal, not equal, to default alignment.
|
||||
|
||||
2015-04-13 Jonathan Wakely <jwakely@redhat.com>
|
||||
|
||||
PR libstdc++/65754
|
||||
|
@ -33,7 +33,7 @@ struct twoints {
|
||||
int32_t b;
|
||||
};
|
||||
|
||||
static_assert( alignof(std::atomic<twoints>) == alignof(int64_t),
|
||||
static_assert( alignof(std::atomic<twoints>) >= alignof(int64_t),
|
||||
"std::atomic not suitably aligned" );
|
||||
|
||||
// libstdc++/65147
|
||||
@ -44,7 +44,7 @@ struct power_of_two_obj {
|
||||
|
||||
std::atomic<power_of_two_obj> obj1;
|
||||
|
||||
static_assert( alignof(obj1) == alignof(int64_t),
|
||||
static_assert( alignof(obj1) >= alignof(int64_t),
|
||||
"std::atomic not suitably aligned" );
|
||||
|
||||
struct container_struct {
|
||||
@ -54,5 +54,5 @@ struct container_struct {
|
||||
|
||||
container_struct obj2;
|
||||
|
||||
static_assert( alignof(obj2.ao) == alignof(int64_t),
|
||||
static_assert( alignof(obj2.ao) >= alignof(int64_t),
|
||||
"std::atomic not suitably aligned" );
|
||||
|
Loading…
Reference in New Issue
Block a user