This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC][libitm] Convert to c++11 atomics
- From: Richard Henderson <rth at redhat dot com>
- To: triegel at redhat dot com, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 13 Dec 2011 11:17:54 -0800
- Subject: Re: [RFC][libitm] Convert to c++11 atomics
- References: <4ED6D49E.5070001@redhat.com>
On 11/30/2011 05:13 PM, Richard Henderson wrote:
> The library is written in C++, so in theory we can use the real atomic<> templates, etc. Except that we have the same horrid problem finding the C++ headers as did for <type_traits>, so again we have a local copy of <atomic>. Blah. But given that it is a copy, the rest of the code is using the real interfaces.
>
> This passes the testsuite on power7 (gcc110), which *is* picky about memory barriers, but I seem to recall that the larger external tests that Velox used were much better at picking out problems. And I've misplaced those...
>
> Torvald, if you'd be so kind as to cast another set of eyes across this, I'd be grateful.
I've committed the patch.
r~