diff options
| author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2017-01-23 22:52:31 +0000 |
|---|---|---|
| committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2017-01-23 22:52:31 +0000 |
| commit | 0f550c81760ac19442d71eb0affa86c048e37b79 (patch) | |
| tree | 276e7a6b955e7b7fa62e338242451ac91729dd8e /compiler-rt/lib/lsan/lsan_common.h | |
| parent | b7a0086db1207f359d0c7c4bff10704de1f52b98 (diff) | |
| download | bcm5719-llvm-0f550c81760ac19442d71eb0affa86c048e37b79.tar.gz bcm5719-llvm-0f550c81760ac19442d71eb0affa86c048e37b79.zip | |
Revert "[lsan] Enable LSan for x86 Linux."
Breaks tests on i686/Linux due to missing clang driver support:
error: unsupported option '-fsanitize=leak' for target 'i386-unknown-linux-gnu'
llvm-svn: 292844
Diffstat (limited to 'compiler-rt/lib/lsan/lsan_common.h')
| -rw-r--r-- | compiler-rt/lib/lsan/lsan_common.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/compiler-rt/lib/lsan/lsan_common.h b/compiler-rt/lib/lsan/lsan_common.h index 43b8dff7849..890ce6562c8 100644 --- a/compiler-rt/lib/lsan/lsan_common.h +++ b/compiler-rt/lib/lsan/lsan_common.h @@ -22,19 +22,9 @@ #include "sanitizer_common/sanitizer_stoptheworld.h" #include "sanitizer_common/sanitizer_symbolizer.h" -// LeakSanitizer relies on some Glibc's internals (e.g. TLS machinery) thus -// supported for Linux only. Also, LSan doesn't like 32 bit architectures -// because of "small" (4 bytes) pointer size that leads to high false negative -// ratio on large leaks. But we still want to have it for some 32 bit arches -// (e.g. x86), see https://github.com/google/sanitizers/issues/403. -// To enable LeakSanitizer on new architecture, one need to implement -// internal_clone function as well as (probably) adjust TLS machinery for -// new architecture inside sanitizer library. #if (SANITIZER_LINUX && !SANITIZER_ANDROID) && (SANITIZER_WORDSIZE == 64) \ && (defined(__x86_64__) || defined(__mips64) || defined(__aarch64__)) #define CAN_SANITIZE_LEAKS 1 -#elif SANITIZER_LINUX && !SANITIZER_ANDROID && defined(__i386__) -#define CAN_SANITIZE_LEAKS 1 #else #define CAN_SANITIZE_LEAKS 0 #endif |

