diff options
author | Kamil Rytarowski <n54@gmx.com> | 2017-11-16 17:54:14 +0000 |
---|---|---|
committer | Kamil Rytarowski <n54@gmx.com> | 2017-11-16 17:54:14 +0000 |
commit | 6692a59458ab016453e89a6b4a7f559335c14293 (patch) | |
tree | 6e537a74e5feda850f4bc57dda2fee554627dd89 /test | |
parent | 871a521d0c3232a89e9f33e6d55f84154bbf9d39 (diff) |
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 <The NetBSD Foundation>
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
Diffstat (limited to 'test')
-rw-r--r-- | test/tsan/tls_race.cc | 1 | ||||
-rw-r--r-- | test/tsan/tls_race2.cc | 1 |
2 files changed, 2 insertions, 0 deletions
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 |