[Bug sanitizer/64265] [5 Regression] r217669 broke tsan
kcc at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Dec 12 19:22:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64265
--- Comment #16 from Kostya Serebryany <kcc at gcc dot gnu.org> ---
> Kostya, can you say anything about llvm? On the tsan issue you said:
> "We'll need a kind of RAII for tsan entry/exit hooks. When we are adding
> tsan instrumentation, we need to create a fake class object with a ctor and
> dtor."
I am still pretty confident that this is the only viable solution
(the fix should be done in Clang, not LLVM).
I did not try to actually implement it yet.
>
> Which suggests that you wanted to do it in a similar way in llvm.
>
> If we decide to it this way in both compilers, then no support in runtime is
> required, and gcc can well implement it ahead of llvm.
Absolutely.
More information about the Gcc-bugs
mailing list