This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/51798] [4.7 regression] libstdc++ atomicity performance regression due to __sync_fetch_and_add


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]