[TSan] Fix compiler warning in Go sanity test.
authorAlexey Samsonov <vonosmas@gmail.com>
Fri, 4 Mar 2016 00:56:15 +0000 (00:56 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Fri, 4 Mar 2016 00:56:15 +0000 (00:56 +0000)
llvm-svn: 262680

compiler-rt/lib/tsan/go/buildgo.sh
compiler-rt/lib/tsan/go/test.c

index 668530c..a75aa6a 100755 (executable)
@@ -123,7 +123,7 @@ if [ "$SILENT" != "1" ]; then
 fi
 $CC $DIR/gotsan.cc -c -o $DIR/race_$SUFFIX.syso $FLAGS $CFLAGS
 
-$CC test.c $DIR/race_$SUFFIX.syso -m64 -o $DIR/test $OSLDFLAGS
+$CC $OSCFLAGS test.c $DIR/race_$SUFFIX.syso -m64 -o $DIR/test $OSLDFLAGS
 
 export GORACE="exitcode=0 atexit_sleep_ms=0"
 if [ "$SILENT" != "1" ]; then
index 0019967..3cdde73 100644 (file)
@@ -23,6 +23,7 @@ void __tsan_write(void *thr, void *addr, void *pc);
 void __tsan_func_enter(void *thr, void *pc);
 void __tsan_func_exit(void *thr);
 void __tsan_malloc(void *thr, void *pc, void *p, unsigned long sz);
+void __tsan_free(void *thr, void *p, unsigned long sz);
 void __tsan_acquire(void *thr, void *addr);
 void __tsan_release(void *thr, void *addr);
 void __tsan_release_merge(void *thr, void *addr);