summaryrefslogtreecommitdiff
path: root/lib/tsan/go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2013-09-22 02:49:56 +0000
committerDmitry Vyukov <dvyukov@google.com>2013-09-22 02:49:56 +0000
commitccaafe66eb47e5cf0432a59df11d4be1bcb3a5b1 (patch)
tree5c5ce9c02795ad7f3bb85501ab0a2b25a6b351ff /lib/tsan/go
parent2d2dc4606e66974a69fb53a66f5b1e5501523686 (diff)
downloadcompiler-rt-ccaafe66eb47e5cf0432a59df11d4be1bcb3a5b1.tar.gz
compiler-rt-ccaafe66eb47e5cf0432a59df11d4be1bcb3a5b1.tar.bz2
compiler-rt-ccaafe66eb47e5cf0432a59df11d4be1bcb3a5b1.tar.xz
tsan: remove unneeded ___chkstk_ms function from Go runtime
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191161 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/tsan/go')
-rwxr-xr-xlib/tsan/go/buildgo.sh4
-rw-r--r--lib/tsan/go/tsan_go.cc34
2 files changed, 2 insertions, 36 deletions
diff --git a/lib/tsan/go/buildgo.sh b/lib/tsan/go/buildgo.sh
index 52a056ab..70e00cc7 100755
--- a/lib/tsan/go/buildgo.sh
+++ b/lib/tsan/go/buildgo.sh
@@ -26,7 +26,7 @@ SRCS="
if [ "`uname -a | grep Linux`" != "" ]; then
SUFFIX="linux_amd64"
- OSCFLAGS="-fPIC -ffreestanding -Wno-maybe-uninitialized"
+ OSCFLAGS="-fPIC -ffreestanding -Wno-maybe-uninitialized -Werror"
OSLDFLAGS="-lpthread -fPIC -fpie"
SRCS+="
../rtl/tsan_platform_linux.cc
@@ -65,7 +65,7 @@ for F in $SRCS; do
cat $F >> gotsan.cc
done
-FLAGS=" -I../rtl -I../.. -I../../sanitizer_common -I../../../include -m64 -Wall -Werror -fno-exceptions -fno-rtti -DTSAN_GO -DSANITIZER_GO -DTSAN_SHADOW_COUNT=4 $OSCFLAGS"
+FLAGS=" -I../rtl -I../.. -I../../sanitizer_common -I../../../include -m64 -Wall -fno-exceptions -fno-rtti -DTSAN_GO -DSANITIZER_GO -DTSAN_SHADOW_COUNT=4 $OSCFLAGS"
if [ "$DEBUG" == "" ]; then
FLAGS+=" -DTSAN_DEBUG=0 -O3 -fomit-frame-pointer"
else
diff --git a/lib/tsan/go/tsan_go.cc b/lib/tsan/go/tsan_go.cc
index 7c89402b..df54bb8e 100644
--- a/lib/tsan/go/tsan_go.cc
+++ b/lib/tsan/go/tsan_go.cc
@@ -186,40 +186,6 @@ void __tsan_finalizer_goroutine(ThreadState *thr) {
AcquireGlobal(thr, 0);
}
-#if SANITIZER_WINDOWS
-// MinGW gcc emits calls to the function.
-void ___chkstk_ms(void) {
-// The implementation must be along the lines of:
-// .code64
-// PUBLIC ___chkstk_ms
-// //cfi_startproc()
-// ___chkstk_ms:
-// push rcx
-// //cfi_push(%rcx)
-// push rax
-// //cfi_push(%rax)
-// cmp rax, PAGE_SIZE
-// lea rcx, [rsp + 24]
-// jb l_LessThanAPage
-// .l_MoreThanAPage:
-// sub rcx, PAGE_SIZE
-// or rcx, 0
-// sub rax, PAGE_SIZE
-// cmp rax, PAGE_SIZE
-// ja l_MoreThanAPage
-// .l_LessThanAPage:
-// sub rcx, rax
-// or [rcx], 0
-// pop rax
-// //cfi_pop(%rax)
-// pop rcx
-// //cfi_pop(%rcx)
-// ret
-// //cfi_endproc()
-// END
-}
-#endif
-
} // extern "C"
} // namespace __tsan