r259931 - [SystemZ] Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP macros

Ulrich Weigand via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 15 07:06:42 PST 2016


Hal Finkel <hfinkel at anl.gov> wrote on 09.02.2016 18:16:21:

> > I guess any application that uses C++11 threads should show this
> > problem immediately.
>
> I'm not sure we have anything like that in our test suite. Could you
> add a simple test?

Hmm, it looks like Nemanja already added this:

SingleSource/UnitTests/C++11/stdthreadbug.cpp

But the test is restricted to run only on ppc64le:

#if defined(_LITTLE_ENDIAN) && defined(__PPC64__)
...

I think there's no particular reason for that restriction.
Do you think we should just enable it on all platforms?

Bye,
Ulrich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160215/f4b3be30/attachment.html>


More information about the cfe-commits mailing list