[compiler-rt] r302562 - [SystemZ] Fix failures after D32542

Ulrich Weigand via llvm-commits llvm-commits at lists.llvm.org
Tue May 9 11:07:51 PDT 2017


Author: uweigand
Date: Tue May  9 13:07:50 2017
New Revision: 302562

URL: http://llvm.org/viewvc/llvm-project?rev=302562&view=rev
Log:
[SystemZ] Fix failures after D32542

This commit made ubsan use the fast unwinder.  On SystemZ this requires
test cases to be compiled with -mbackchain.  That was already done for
asan, but not ubsan.  Add the flag for ubsan as well.


Modified:
    compiler-rt/trunk/test/ubsan/lit.common.cfg

Modified: compiler-rt/trunk/test/ubsan/lit.common.cfg
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/ubsan/lit.common.cfg?rev=302562&r1=302561&r2=302562&view=diff
==============================================================================
--- compiler-rt/trunk/test/ubsan/lit.common.cfg (original)
+++ compiler-rt/trunk/test/ubsan/lit.common.cfg Tue May  9 13:07:50 2017
@@ -38,6 +38,9 @@ else:
   lit_config.fatal("Unknown UBSan test mode: %r" % ubsan_lit_test_mode)
 
 # Platform-specific default for lit tests.
+if config.target_arch == 's390x':
+  # On SystemZ we need -mbackchain to make the fast unwinder work.
+  clang_ubsan_cflags.append("-mbackchain")
 if config.host_os == 'Darwin':
   # On Darwin, we default to `abort_on_error=1`, which would make tests run
   # much slower. Let's override this and run lit tests with 'abort_on_error=0'.




More information about the llvm-commits mailing list