summaryrefslogtreecommitdiff
path: root/test/scudo
diff options
context:
space:
mode:
authorKostya Kortchinsky <kostyak@google.com>2017-01-20 18:32:18 +0000
committerKostya Kortchinsky <kostyak@google.com>2017-01-20 18:32:18 +0000
commit3c3e150467551cde5760652ccff0c46a3fdba3c0 (patch)
treeed18a8fb6851f8b05af68c047d9f5d3edbecb4cd /test/scudo
parent212ca9be08d3d542f8929754e651d42a6138fc41 (diff)
[scudo] Replacing std::atomic with Sanitizer's atomics
Summary: In an effort to getting rid of dependencies to external libraries, we are replacing atomic PackedHeader use of std::atomic with Sanitizer's atomic_uint64_t, which allows us to avoid -latomic. Reviewers: kcc, phosek, alekseyshl Reviewed By: alekseyshl Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D28864 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@292630 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/scudo')
-rw-r--r--test/scudo/interface.cpp2
-rw-r--r--test/scudo/lit.cfg2
-rw-r--r--test/scudo/malloc.cpp2
-rw-r--r--test/scudo/realloc.cpp2
4 files changed, 3 insertions, 5 deletions
diff --git a/test/scudo/interface.cpp b/test/scudo/interface.cpp
index f9353066e..55de17432 100644
--- a/test/scudo/interface.cpp
+++ b/test/scudo/interface.cpp
@@ -1,4 +1,4 @@
-// RUN: %clang_scudo %s -o %t
+// RUN: %clang_scudo %s -lstdc++ -o %t
// RUN: %run %t 2>&1
// Tests that the sanitizer interface functions behave appropriately.
diff --git a/test/scudo/lit.cfg b/test/scudo/lit.cfg
index 4eff2ce21..b0476303c 100644
--- a/test/scudo/lit.cfg
+++ b/test/scudo/lit.cfg
@@ -19,9 +19,7 @@ config.suffixes = ['.c', '.cc', '.cpp']
# C flags.
c_flags = ([config.target_cflags] +
["-std=c++11",
- "-lstdc++",
"-lrt",
- "-latomic",
"-ldl",
"-pthread",
"-fPIE",
diff --git a/test/scudo/malloc.cpp b/test/scudo/malloc.cpp
index cafc744a2..fbe57a8cb 100644
--- a/test/scudo/malloc.cpp
+++ b/test/scudo/malloc.cpp
@@ -1,4 +1,4 @@
-// RUN: %clang_scudo %s -o %t
+// RUN: %clang_scudo %s -lstdc++ -o %t
// RUN: %run %t 2>&1
// Tests that a regular workflow of allocation, memory fill and free works as
diff --git a/test/scudo/realloc.cpp b/test/scudo/realloc.cpp
index cc4459500..d34e356fb 100644
--- a/test/scudo/realloc.cpp
+++ b/test/scudo/realloc.cpp
@@ -1,4 +1,4 @@
-// RUN: %clang_scudo %s -o %t
+// RUN: %clang_scudo %s -lstdc++ -o %t
// RUN: %run %t pointers 2>&1
// RUN: %run %t contents 2>&1
// RUN: not %run %t memalign 2>&1 | FileCheck %s