[PATCH] D36810: Minimal runtime for UBSan.

Evgenii Stepanov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 24 15:45:04 PDT 2017


eugenis updated this revision to Diff 112625.
eugenis added a comment.

Now with tests and better diagnostics in the driver.

Disabled minimal runtime with CFI because cross-dso cfi does not know how to handle an error without diagnostic data.
Minimal runtime is not realy necessary with cross-dso cfi, because the stack trace very clearly points to the problem.


https://reviews.llvm.org/D36810

Files:
  clang/include/clang/Driver/Options.td
  clang/include/clang/Driver/SanitizerArgs.h
  clang/include/clang/Frontend/CodeGenOptions.def
  clang/lib/CodeGen/CGExpr.cpp
  clang/lib/Driver/SanitizerArgs.cpp
  clang/lib/Driver/ToolChains/CommonArgs.cpp
  clang/lib/Frontend/CompilerInvocation.cpp
  clang/test/CodeGen/unsigned-overflow-minimal.c
  clang/test/Driver/fsanitize.c
  clang/test/Driver/sanitizer-ld.c
  compiler-rt/cmake/config-ix.cmake
  compiler-rt/lib/CMakeLists.txt
  compiler-rt/lib/ubsan_minimal/CMakeLists.txt
  compiler-rt/lib/ubsan_minimal/ubsan.syms.extra
  compiler-rt/lib/ubsan_minimal/ubsan_minimal_handlers.cc
  compiler-rt/test/CMakeLists.txt
  compiler-rt/test/ubsan_minimal/CMakeLists.txt
  compiler-rt/test/ubsan_minimal/TestCases/recover-dedup-limit.cpp
  compiler-rt/test/ubsan_minimal/TestCases/recover-dedup.cpp
  compiler-rt/test/ubsan_minimal/TestCases/uadd-overflow.cpp
  compiler-rt/test/ubsan_minimal/lit.common.cfg
  compiler-rt/test/ubsan_minimal/lit.site.cfg.in

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36810.112625.patch
Type: text/x-patch
Size: 28877 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170824/6a39b8fb/attachment.bin>


More information about the llvm-commits mailing list