From 6692a59458ab016453e89a6b4a7f559335c14293 Mon Sep 17 00:00:00 2001 From: Kamil Rytarowski Date: Thu, 16 Nov 2017 17:54:14 +0000 Subject: Implement GetTls() for NetBSD Summary: Reuse the existing code for FreeBSD that is compatible with NetBSD. Add NetBSD support in tests: tls_race.cc and tls_race2.cc. Sponsored by Reviewers: joerg, dvyukov, vitalybuka, kcc, eugenis Reviewed By: dvyukov Subscribers: srhines, emaste, kubamracek, llvm-commits, #sanitizers Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D40105 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@318431 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/tsan/tls_race.cc | 1 + test/tsan/tls_race2.cc | 1 + 2 files changed, 2 insertions(+) (limited to 'test') diff --git a/test/tsan/tls_race.cc b/test/tsan/tls_race.cc index b43a514cc..dd37ff01d 100644 --- a/test/tsan/tls_race.cc +++ b/test/tsan/tls_race.cc @@ -20,4 +20,5 @@ int main() { // CHECK: WARNING: ThreadSanitizer: data race // CHECK-Linux: Location is TLS of main thread. // CHECK-FreeBSD: Location is TLS of main thread. +// CHECK-NetBSD: Location is TLS of main thread. // CHECK-Darwin: Location is heap block of size 4 diff --git a/test/tsan/tls_race2.cc b/test/tsan/tls_race2.cc index b04ff6788..f3139b69f 100644 --- a/test/tsan/tls_race2.cc +++ b/test/tsan/tls_race2.cc @@ -27,4 +27,5 @@ int main() { // CHECK: WARNING: ThreadSanitizer: data race // CHECK-Linux: Location is TLS of thread T1. // CHECK-FreeBSD: Location is TLS of thread T1. +// CHECK-NetBSD: Location is TLS of thread T1. // CHECK-Darwin: Location is heap block of size 4 -- cgit v1.2.3