This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/51798] [4.7 regression] libstdc++ atomicity performance regression due to __sync_fetch_and_add
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 26 Jan 2012 15:25:11 +0000
- Subject: [Bug libstdc++/51798] [4.7 regression] libstdc++ atomicity performance regression due to __sync_fetch_and_add
- Auto-submitted: auto-generated
- References: <bug-51798-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51798
--- Comment #14 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-01-26 15:25:11 UTC ---
(In reply to comment #13)
> If libstdc++-v3 does not consistently use its own atomicity.h everywhere, then
> it is even more broken.
calm down, a few places in libstdc++ use __sync_compare_and_swap directly
because there is no CAS in atomicity.h