Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gcc/lib/libtsan add glue for unimplemented pla...



details:   https://anonhg.NetBSD.org/src/rev/963d158b5af6
branches:  trunk
changeset: 345734:963d158b5af6
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jun 05 20:08:26 2016 +0000

description:
add glue for unimplemented platforms

diffstat:

 external/gpl3/gcc/lib/libtsan/Makefile           |  8 +++++++-
 external/gpl3/gcc/lib/libtsan/tsan_rtl_unimpl.cc |  4 ++++
 2 files changed, 11 insertions(+), 1 deletions(-)

diffs (30 lines):

diff -r a40cd1162c8a -r 963d158b5af6 external/gpl3/gcc/lib/libtsan/Makefile
--- a/external/gpl3/gcc/lib/libtsan/Makefile    Sun Jun 05 19:17:23 2016 +0000
+++ b/external/gpl3/gcc/lib/libtsan/Makefile    Sun Jun 05 20:08:26 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2016/06/01 22:48:55 christos Exp $
+# $NetBSD: Makefile,v 1.5 2016/06/05 20:08:26 christos Exp $
 
 .include <bsd.own.mk>
 
@@ -35,6 +35,12 @@
 tsan_symbolize.o \
 tsan_sync.o
 
+.if exists(${SANITIZER}/tsan/tsan_rtl_${MACHINE}.S)
+TSAN_SRCS+= tsan_rtl_${MACHINE}.S
+.else
+TSAN_SRCS+= tsan_rtl_unimpl.cc
+.endif
+
 LIB=   tsan
 SRCS+= ${TSAN_SRCS}
 
diff -r a40cd1162c8a -r 963d158b5af6 external/gpl3/gcc/lib/libtsan/tsan_rtl_unimpl.cc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/gpl3/gcc/lib/libtsan/tsan_rtl_unimpl.cc  Sun Jun 05 20:08:26 2016 +0000
@@ -0,0 +1,4 @@
+#include <cstdlib>
+
+extern "C" void __tsan_report_race_thunk(void) { abort(); }
+extern "C" void __tsan_trace_switch_thunk(void) { abort(); }



Home | Main Index | Thread Index | Old Index