diff options
author | Alexey Samsonov <vonosmas@gmail.com> | 2016-03-04 00:56:15 +0000 |
---|---|---|
committer | Alexey Samsonov <vonosmas@gmail.com> | 2016-03-04 00:56:15 +0000 |
commit | 4362a994d20a33f3220e5cf107b5798769d6d5d4 (patch) | |
tree | 7b2d909bf69abbbd91268ca81fa71a3d1559b8bc /compiler-rt/lib/tsan/go | |
parent | 3b7a8246c984bf5de8daa346f55a55f7d42d0391 (diff) | |
download | bcm5719-llvm-4362a994d20a33f3220e5cf107b5798769d6d5d4.tar.gz bcm5719-llvm-4362a994d20a33f3220e5cf107b5798769d6d5d4.zip |
[TSan] Fix compiler warning in Go sanity test.
llvm-svn: 262680
Diffstat (limited to 'compiler-rt/lib/tsan/go')
-rwxr-xr-x | compiler-rt/lib/tsan/go/buildgo.sh | 2 | ||||
-rw-r--r-- | compiler-rt/lib/tsan/go/test.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/compiler-rt/lib/tsan/go/buildgo.sh b/compiler-rt/lib/tsan/go/buildgo.sh index 668530c5f40..a75aa6a2c72 100755 --- a/compiler-rt/lib/tsan/go/buildgo.sh +++ b/compiler-rt/lib/tsan/go/buildgo.sh @@ -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 diff --git a/compiler-rt/lib/tsan/go/test.c b/compiler-rt/lib/tsan/go/test.c index 00199672b9b..3cdde73d51d 100644 --- a/compiler-rt/lib/tsan/go/test.c +++ b/compiler-rt/lib/tsan/go/test.c @@ -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); |