diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2015-11-30 19:43:03 +0000 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2015-11-30 19:43:03 +0000 |
commit | 0c487bca5d972e4d58765f453d2f3c255d63164f (patch) | |
tree | a543942c3cab185cae1337d1f386c2a9a3737919 /test/tsan/mop_with_offset.cc | |
parent | 8804cdf9e3e5ff844878245d8eda56116de37e3a (diff) |
[compiler-rt] Remove SANITIZER_AARCH64_VMA usage
This patch complete removed SANITIZER_AARCH64_VMA definition and usage.
AArch64 ports now supports runtime VMA detection and instrumentation
for 39 and 42-bit VMA.
It also Rewrite print_address to take a variadic argument list
(the addresses to print) and adjust the tests which uses it to the new
signature.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@254319 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/tsan/mop_with_offset.cc')
-rw-r--r-- | test/tsan/mop_with_offset.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/tsan/mop_with_offset.cc b/test/tsan/mop_with_offset.cc index c67e81e09..e2496d099 100644 --- a/test/tsan/mop_with_offset.cc +++ b/test/tsan/mop_with_offset.cc @@ -18,8 +18,8 @@ void *Thread2(void *x) { int main() { barrier_init(&barrier, 2); int *data = new int(42); - fprintf(stderr, "ptr1=%p\n", data); - fprintf(stderr, "ptr2=%p\n", (char*)data + 2); + print_address("ptr1=", 1, data); + print_address("ptr2=", 1, (char*)data + 2); pthread_t t[2]; pthread_create(&t[0], NULL, Thread1, data); pthread_create(&t[1], NULL, Thread2, data); |