altamimi513 / data-race-test

Automatically exported from code.google.com/p/data-race-test
0 stars 0 forks source link

tsanv2: implement __has_feature(thread_sanitizer) #101

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
clang must define THREAD_SANITIZER when -fthread-sanitizer is passed.

Original issue reported on code.google.com by dvyu...@google.com on 13 Apr 2012 at 1:53

GoogleCodeExporter commented 8 years ago
We don't define ADDRESS_SANITIZER for ASan, so we should not do this for TSan, 
either.
We use has_feature macros instead.

Original comment by euge...@chromium.org on 13 Apr 2012 at 2:20

GoogleCodeExporter commented 8 years ago
Yes, clang does not define ADDRESS_SANITIZER -- the clang folks rejected that 
patch and they had reasons. 
but asan can use "__has_feature(address_sanitizer)"
 http://clang.llvm.org/docs/LanguageExtensions.html#address_sanitizer

Original comment by konstant...@gmail.com on 13 Apr 2012 at 4:23