[PATCH] D22711: Diagnose invalid failure memory orderings.

2018-05-07 Thread JF Bastien via Phabricator via cfe-commits
jfb requested changes to this revision. jfb added a comment. This revision now requires changes to proceed. Given http://wg21.link/p0418 I think this requires an update. I don't think the old behavior is worth supporting in older `-std=` versions, unless we're worried that it would make code les

Re: [PATCH] D22711: Diagnose invalid failure memory orderings.

2016-08-10 Thread JF Bastien via cfe-commits
jfb added a comment. Warnings look correct. Could they be made more useful by suggesting that `acq_rel` be `acquire` instead, and `release` be `relaxed` instead? https://reviews.llvm.org/D22711 ___ cfe-commits mailing list cfe-commits@lists.llvm.or

Re: [PATCH] D22711: Diagnose invalid failure memory orderings.

2016-08-10 Thread Eric Fiselier via cfe-commits
EricWF added a comment. ping. Clang correctly lowers the invalid memory orders, so do we want these diagnostics? https://reviews.llvm.org/D22711 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/

[PATCH] D22711: Diagnose invalid failure memory orderings.

2016-07-22 Thread Eric Fiselier via cfe-commits
EricWF created this revision. EricWF added reviewers: majnemer, jfb, rsmith. EricWF added a subscriber: cfe-commits. Clang currently issues diagnostics if the success memory order argument is invalid, but it doesn't check the failure ordering argument for cmpxchg atomic operations. This patch ad