[compiler-rt] r179366 - [MSan] don't build tests with -fPIE/-pie, as these flags are implied by -fsanitize=memory now

Alexey Samsonov samsonov at google.com
Fri Apr 12 00:14:04 PDT 2013


Author: samsonov
Date: Fri Apr 12 02:14:04 2013
New Revision: 179366

URL: http://llvm.org/viewvc/llvm-project?rev=179366&view=rev
Log:
[MSan] don't build tests with -fPIE/-pie, as these flags are implied by -fsanitize=memory now

Modified:
    compiler-rt/trunk/lib/msan/lit_tests/lit.cfg
    compiler-rt/trunk/lib/msan/tests/CMakeLists.txt

Modified: compiler-rt/trunk/lib/msan/lit_tests/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/msan/lit_tests/lit.cfg?rev=179366&r1=179365&r2=179366&view=diff
==============================================================================
--- compiler-rt/trunk/lib/msan/lit_tests/lit.cfg (original)
+++ compiler-rt/trunk/lib/msan/lit_tests/lit.cfg Fri Apr 12 02:14:04 2013
@@ -61,9 +61,7 @@ clang_msan_cflags = ["-fsanitize=memory"
                      "-mno-omit-leaf-frame-pointer",
                      "-fno-omit-frame-pointer",
                      "-fno-optimize-sibling-calls",
-                     "-g",
-                     "-fPIE",
-                     "-pie"]
+                     "-g"]
 clang_msan_cxxflags = ["-ccc-cxx "] + clang_msan_cflags
 config.substitutions.append( ("%clang_msan ",
                               " ".join([config.clang] + clang_msan_cflags) + 

Modified: compiler-rt/trunk/lib/msan/tests/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/msan/tests/CMakeLists.txt?rev=179366&r1=179365&r2=179366&view=diff
==============================================================================
--- compiler-rt/trunk/lib/msan/tests/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/msan/tests/CMakeLists.txt Fri Apr 12 02:14:04 2013
@@ -47,7 +47,6 @@ set(MSAN_UNITTEST_COMMON_CFLAGS
   -I${COMPILER_RT_SOURCE_DIR}/lib/msan
   -std=c++0x
   -stdlib=libc++
-  -fPIE
   -g
   -O2
   -fno-exceptions
@@ -62,7 +61,6 @@ set(MSAN_UNITTEST_INSTRUMENTED_CFLAGS
 )
 set(MSAN_UNITTEST_LINK_FLAGS
   -fsanitize=memory
-  -pie
   -ldl
   # FIXME: we build libcxx without cxxabi and need libstdc++ to provide it.
   -lstdc++





More information about the llvm-commits mailing list