[compiler-rt] r280980 - Fix tsan-go build.
Evgeniy Stepanov via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 8 12:16:01 PDT 2016
Author: eugenis
Date: Thu Sep 8 14:16:01 2016
New Revision: 280980
URL: http://llvm.org/viewvc/llvm-project?rev=280980&view=rev
Log:
Fix tsan-go build.
Disable the new abort-in-SIGABRT code under SANITIZER_GO.
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix_libcdep.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix_libcdep.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix_libcdep.cc?rev=280980&r1=280979&r2=280980&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix_libcdep.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix_libcdep.cc Thu Sep 8 14:16:01 2016
@@ -128,6 +128,7 @@ void SleepForMillis(int millis) {
}
void Abort() {
+#ifndef SANITIZER_GO
// If we are handling SIGABRT, unhandle it first.
if (IsHandledDeadlySignal(SIGABRT)) {
struct sigaction sigact;
@@ -135,6 +136,7 @@ void Abort() {
sigact.sa_sigaction = (sa_sigaction_t)SIG_DFL;
internal_sigaction(SIGABRT, &sigact, nullptr);
}
+#endif
abort();
}
More information about the llvm-commits
mailing list