[PATCH] [libcxx] Obey 29.6.5.21 for GCC.

Dan Albert danalbert at google.com
Thu Dec 11 16:41:55 PST 2014


Hi mclow.lists, EricWF, jroelofs,

Excerpt from N3797 29.6.5.21:

> When only one memory_order argument is supplied, the value of
> success is order, and the value of failure is order except that a
> value of memory_order_acq_rel shall be replaced by the value
> memory_order_acquire and a value of memory_order_release shall be
> replaced by the value memory_order_relaxed.

Clean up some copy pasta while I'm here (someone added a return
statement to a void function).

http://reviews.llvm.org/D6632

Files:
  include/atomic
  test/atomics/atomics.general/replace_failure_order.pass.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6632.17199.patch
Type: text/x-patch
Size: 4727 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141212/3b9fe33a/attachment.bin>


More information about the cfe-commits mailing list