atomic (compare_exchange_weak, [...]): Add call to __cmpexch_failure_order.
authorNathan Froyd <froydnj@gcc.gnu.org>
Mon, 29 Jul 2013 17:13:05 +0000 (17:13 +0000)
committerNathan Froyd <froydnj@gcc.gnu.org>
Mon, 29 Jul 2013 17:13:05 +0000 (17:13 +0000)
commit272827e446d889b671f76f5b8aa763c0b82384ad
treeec2d8580f766dcd9a89ba7ed63534b6587a17b3f
parentff3f395157c42a6d2c922de085f5a890834f975b
atomic (compare_exchange_weak, [...]): Add call to __cmpexch_failure_order.

libstdc++-v3/
* include/std/atomic (compare_exchange_weak, compare_exchange_strong):
Add call to __cmpexch_failure_order.
* testsuite/util/testsuite_common_types.h
(compare_exchange_order_lowering): New generator.
* testsuite/29_atomics/atomic/requirements/compare_exchange_lowering.cc:
New test.

From-SVN: r201315
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/atomic
libstdc++-v3/testsuite/29_atomics/atomic/requirements/compare_exchange_lowering.cc [new file with mode: 0644]
libstdc++-v3/testsuite/util/testsuite_common_types.h