Re: [PATCH] D21637: [libcxx] Don't use pthread initializers in constexpr constructors

2016-07-18 Thread Marshall Clow via cfe-commits
mclow.lists closed this revision. mclow.lists added a comment. Committed as revision 275819. https://reviews.llvm.org/D21637 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D21637: [libcxx] Don't use pthread initializers in constexpr constructors

2016-07-18 Thread Julien Ramseier via cfe-commits
elram added a comment. I don't have commit access. Can someone do it for me please? https://reviews.llvm.org/D21637 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D21637: [libcxx] Don't use pthread initializers in constexpr constructors

2016-06-30 Thread Julien Ramseier via cfe-commits
elram updated this revision to Diff 62339. http://reviews.llvm.org/D21637 Files: include/__mutex_base Index: include/__mutex_base === --- include/__mutex_base +++ include/__mutex_base @@ -34,16 +34,20 @@ class _LIBCPP_TYPE_VIS

Re: [PATCH] D21637: [libcxx] Don't use pthread initializers in constexpr constructors

2016-06-30 Thread Joerg Sonnenberger via cfe-commits
On Thu, Jun 30, 2016 at 06:37:59AM +, Eric Fiselier wrote: > EricWF requested changes to this revision. > EricWF added a comment. > This revision now requires changes to proceed. > > C++03 does not support default member initializers but libc++ provides both > of these classes an extensions i

Re: [PATCH] D21637: [libcxx] Don't use pthread initializers in constexpr constructors

2016-06-30 Thread Asiri Rathnayake via cfe-commits
rmaprath added a comment. In http://reviews.llvm.org/D21637#471154, @EricWF wrote: > In http://reviews.llvm.org/D21637#471151, @rmaprath wrote: > > > Small side question: so how are `__m_` and `__cv_` initialized in this > > setup? is it that `pthread_mutex_lock()` and the like would be able to

Re: [PATCH] D21637: [libcxx] Don't use pthread initializers in constexpr constructors

2016-06-30 Thread Eric Fiselier via cfe-commits
EricWF added a comment. In http://reviews.llvm.org/D21637#471151, @rmaprath wrote: > Small side question: so how are `__m_` and `__cv_` initialized in this setup? > is it that `pthread_mutex_lock()` and the like would be able to handle an > un-initialized blob of memory (in a thread-safe way)?

Re: [PATCH] D21637: [libcxx] Don't use pthread initializers in constexpr constructors

2016-06-30 Thread Asiri Rathnayake via cfe-commits
rmaprath added a subscriber: rmaprath. rmaprath added a comment. Small side question: so how are `__m_` and `__cv_` initialized in this setup? is it that `pthread_mutex_lock()` and the like would be able to handle an un-initialized blob of memory (in a thread-safe way)? Because I don't see a ca

Re: [PATCH] D21637: [libcxx] Don't use pthread initializers in constexpr constructors

2016-06-30 Thread Eric Fiselier via cfe-commits
EricWF accepted this revision. EricWF added a comment. This revision is now accepted and ready to land. LGTM. http://reviews.llvm.org/D21637 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

Re: [PATCH] D21637: [libcxx] Don't use pthread initializers in constexpr constructors

2016-06-29 Thread Eric Fiselier via cfe-commits
EricWF requested changes to this revision. EricWF added a comment. This revision now requires changes to proceed. C++03 does not support default member initializers but libc++ provides both of these classes an extensions in C++03. C++03 also does not support defaulted special members. I think th

Re: [PATCH] D21637: [libcxx] Don't use pthread initializers in constexpr constructors

2016-06-23 Thread Joerg Sonnenberger via cfe-commits
On Thu, Jun 23, 2016 at 02:27:12PM +, Ben Craig via cfe-commits wrote: > bcraig added subscribers: joerg, bcraig. > bcraig added a comment. > > @joerg. I think this has been fixed in newer versions of NetBSD. > > Sure would be nice if someone could fix this on the MUSL side of things. > > S

Re: [PATCH] D21637: [libcxx] Don't use pthread initializers in constexpr constructors

2016-06-23 Thread Ben Craig via cfe-commits
bcraig added subscribers: joerg, bcraig. bcraig added a comment. @joerg. I think this has been fixed in newer versions of NetBSD. Sure would be nice if someone could fix this on the MUSL side of things. See https://bugs.musicpd.org/view.php?id=4110 for fun conversations about mutex, PTHREAD_MU

[PATCH] D21637: [libcxx] Don't use pthread initializers in constexpr constructors

2016-06-23 Thread Julien via cfe-commits
elram created this revision. elram added a reviewer: EricWF. elram added a subscriber: cfe-commits. Some pthread implementations use volatile types in their structs. C++11 does not allow initializing volatile types in constexpr constructors. This fixes building libcxx on musl-libc and NetBSD. h