From 3ac5c27c1fe9e0fea9ca1842ea307b4fc3e2e85e Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 16 Feb 2015 14:35:51 +0000 Subject: [PATCH] tsan: fix freebsd build GetTls is not defined in Go mode. llvm-svn: 229395 --- compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc b/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc index df42c36..3ef6eee 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc @@ -298,6 +298,7 @@ static void GetTls(uptr *addr, uptr *size) { } #endif +#if !SANITIZER_GO uptr GetTlsSize() { #if SANITIZER_FREEBSD uptr addr, size; @@ -307,6 +308,7 @@ uptr GetTlsSize() { return g_tls_size; #endif } +#endif void GetThreadStackAndTls(bool main, uptr *stk_addr, uptr *stk_size, uptr *tls_addr, uptr *tls_size) { -- 2.7.4