https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62105

Kostya Serebryany <kcc at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |eugeni.stepanov at gmail dot 
com,
                   |                            |kcc at gcc dot gnu.org,
                   |                            |samsonov at google dot com

--- Comment #1 from Kostya Serebryany <kcc at gcc dot gnu.org> ---
clang uses -whole-archive:
clang  -fsanitize=thread a.cc -v
 "/usr/bin/ld" -whole-archive
...lib/clang/3.5.0/lib/linux/libclang_rt.tsan-x86_64.a -no-whole-archive ...

I believe this is the only right thing to do. 
Placing the tsan run-time after the objects will have other nasty side effects 
(Alexey, Evgenyi may remember exactly which)

Reply via email to