[compiler-rt] r313641 - [sanitizer] Don't define common ReportDeadlySignal on Fuchsia

Petr Hosek via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 19 10:00:23 PDT 2017


Author: phosek
Date: Tue Sep 19 10:00:22 2017
New Revision: 313641

URL: http://llvm.org/viewvc/llvm-project?rev=313641&view=rev
Log:
[sanitizer] Don't define common ReportDeadlySignal on Fuchsia

This causes a linker error because of duplicate symbol since
ReportDeadlySignal is defined both in sanitizer_common_libcdep and
sanitizer_fuchsia.

Differential Revision: https://reviews.llvm.org/D37952

Modified:
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_libcdep.cc

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_libcdep.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_libcdep.cc?rev=313641&r1=313640&r2=313641&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_libcdep.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_libcdep.cc Tue Sep 19 10:00:22 2017
@@ -147,7 +147,7 @@ void BackgroundThread(void *arg) {
 }
 #endif
 
-#if !SANITIZER_GO
+#if !SANITIZER_FUCHSIA && !SANITIZER_GO
 void StartReportDeadlySignal() {
   // Write the first message using fd=2, just in case.
   // It may actually fail to write in case stderr is closed.
@@ -254,7 +254,7 @@ void ReportDeadlySignal(const SignalCont
   else
     ReportDeadlySignalImpl(sig, tid, unwind, unwind_context);
 }
-#endif  // !SANITIZER_GO
+#endif  // !SANITIZER_FUCHSIA && !SANITIZER_GO
 
 void WriteToSyslog(const char *msg) {
   InternalScopedString msg_copy(kErrorMessageBufferSize);




More information about the llvm-commits mailing list