From: Hans-Peter Nilsson Date: Tue, 14 Apr 2015 00:37:57 +0000 (+0000) Subject: Fix regression for libstdc++-v3/testsuite/29_atomics/atomic/62259.cc as... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=035762594004b36e416fde0245d2c1c412605389;p=gcc.git 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 . * testsuite/29_atomics/atomic/62259.cc: Assert atomic alignment is larger-equal, not equal, to default alignment. From-SVN: r222072 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index b780c6be324..baa3336c0b8 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2015-04-14 Hans-Peter Nilsson + + * testsuite/29_atomics/atomic/62259.cc: Assert atomic + alignment is larger-equal, not equal, to default alignment. + 2015-04-13 Jonathan Wakely PR libstdc++/65754 diff --git a/libstdc++-v3/testsuite/29_atomics/atomic/62259.cc b/libstdc++-v3/testsuite/29_atomics/atomic/62259.cc index cf5423a81da..2fb678d8188 100644 --- a/libstdc++-v3/testsuite/29_atomics/atomic/62259.cc +++ b/libstdc++-v3/testsuite/29_atomics/atomic/62259.cc @@ -33,7 +33,7 @@ struct twoints { int32_t b; }; -static_assert( alignof(std::atomic) == alignof(int64_t), +static_assert( alignof(std::atomic) >= alignof(int64_t), "std::atomic not suitably aligned" ); // libstdc++/65147 @@ -44,7 +44,7 @@ struct power_of_two_obj { std::atomic 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" );