http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59215
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> --- I realise that, but the general point is still valid: for race detectors to understand the atomic updates in the library they library needs to be compiled with the race detector enabled. We can update the docs to cover tsan as well, but the point is till that you need to recompile the library to prevent false positives from race detectors.