summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/msan
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2018-12-27 00:21:20 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2018-12-27 00:21:20 +0000
commitfaef9b77de6679d29fe0b011210e8bc018b4966f (patch)
tree4d7e12542ea097c349bc69b847eb45ef86f023d9 /compiler-rt/lib/msan
parentf227621036351c8f0e142e938d4a597480443650 (diff)
downloadbcm5719-llvm-faef9b77de6679d29fe0b011210e8bc018b4966f.tar.gz
bcm5719-llvm-faef9b77de6679d29fe0b011210e8bc018b4966f.zip
[msan] Disable tail call optimization in msan rtl.
This should give us better error stack traces on the bots, in particular, for https://bugs.llvm.org/show_bug.cgi?id=40162 llvm-svn: 350080
Diffstat (limited to 'compiler-rt/lib/msan')
-rw-r--r--compiler-rt/lib/msan/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler-rt/lib/msan/CMakeLists.txt b/compiler-rt/lib/msan/CMakeLists.txt
index 15cc513c20e..1fd0be1ae86 100644
--- a/compiler-rt/lib/msan/CMakeLists.txt
+++ b/compiler-rt/lib/msan/CMakeLists.txt
@@ -38,6 +38,11 @@ endif()
# Prevent clang from generating libc calls.
append_list_if(COMPILER_RT_HAS_FFREESTANDING_FLAG -ffreestanding MSAN_RTL_CFLAGS)
+# Tracking down https://bugs.llvm.org/show_bug.cgi?id=40162
+if(CMAKE_SYSTEM_NAME MATCHES "Linux")
+ list(APPEND MSAN_RTL_CFLAGS -fno-optimize-sibling-calls)
+endif()
+
set(MSAN_RUNTIME_LIBRARIES)
# Static runtime library.
OpenPOWER on IntegriCloud