summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Samsonov <vonosmas@gmail.com>2014-07-22 23:10:13 +0000
committerAlexey Samsonov <vonosmas@gmail.com>2014-07-22 23:10:13 +0000
commitad63cfd7e50c76d0b52d45584c10f01595b66645 (patch)
tree01cce88688cfe9f35502bb515b4a71cda836c04a
parentcce313b082f0fd609d10ca4f4bf7f3fe1b8a70a0 (diff)
downloadbcm5719-llvm-ad63cfd7e50c76d0b52d45584c10f01595b66645.tar.gz
bcm5719-llvm-ad63cfd7e50c76d0b52d45584c10f01595b66645.zip
[Sanitizer] Disable Wframe-larger-than on PowerPC hosts
llvm-svn: 213702
-rw-r--r--compiler-rt/lib/sanitizer_common/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler-rt/lib/sanitizer_common/CMakeLists.txt b/compiler-rt/lib/sanitizer_common/CMakeLists.txt
index 7ad3f3115e2..86795d1f003 100644
--- a/compiler-rt/lib/sanitizer_common/CMakeLists.txt
+++ b/compiler-rt/lib/sanitizer_common/CMakeLists.txt
@@ -100,7 +100,10 @@ endif()
set(SANITIZER_CFLAGS ${SANITIZER_COMMON_CFLAGS})
append_no_rtti_flag(SANITIZER_CFLAGS)
-append_if(COMPILER_RT_HAS_WFRAME_LARGER_THAN_FLAG -Wframe-larger-than=512 SANITIZER_CFLAGS)
+# Stack frames on PowerPC are much larger than anticipated.
+if(NOT ${LLVM_NATIVE_ARCH} STREQUAL "PowerPC")
+ append_if(COMPILER_RT_HAS_WFRAME_LARGER_THAN_FLAG -Wframe-larger-than=512 SANITIZER_CFLAGS)
+endif()
append_if(COMPILER_RT_HAS_WGLOBAL_CONSTRUCTORS_FLAG -Wglobal-constructors SANITIZER_CFLAGS)
add_custom_target(sanitizer_common)
OpenPOWER on IntegriCloud