[all-commits] [llvm/llvm-project] 14de6e: [Clang][Driver] Add Bounds and Thread to SupportsC...

Marco Elver via All-commits all-commits at lists.llvm.org
Tue May 26 13:36:47 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 14de6e29b1315e9abe61d71e3e13f75bff80e1be
      https://github.com/llvm/llvm-project/commit/14de6e29b1315e9abe61d71e3e13f75bff80e1be
  Author: Marco Elver <elver at google.com>
  Date:   2020-05-26 (Tue, 26 May 2020)

  Changed paths:
    M clang/lib/Driver/SanitizerArgs.cpp
    A clang/test/CodeGen/sanitize-coverage.c
    M clang/test/Driver/fsanitize-coverage.c
    M compiler-rt/test/sanitizer_common/TestCases/sanitizer_coverage_inline8bit_counter.cpp
    M compiler-rt/test/sanitizer_common/TestCases/sanitizer_coverage_inline_bool_flag.cpp
    M compiler-rt/test/sanitizer_common/TestCases/sanitizer_coverage_no_prune.cpp
    M compiler-rt/test/sanitizer_common/TestCases/sanitizer_coverage_stack_depth.cpp
    M compiler-rt/test/sanitizer_common/TestCases/sanitizer_coverage_trace_pc_guard-init.cpp

  Log Message:
  -----------
  [Clang][Driver] Add Bounds and Thread to SupportsCoverage list

Summary:
This permits combining -fsanitize-coverage with -fsanitize=bounds or
-fsanitize=thread. Note that, GCC already supports combining these.

Tested:
- Add Clang end-to-end test checking IR is generated for both combinations
of sanitizers.
- Several previously failing TSAN tests now pass.

Bugzilla: https://bugs.llvm.org/show_bug.cgi?id=45831

Reviewers: vitalybuka

Reviewed By: vitalybuka

Subscribers: #sanitizers, dvyukov, nickdesaulniers, cfe-commits

Tags: #clang, #sanitizers

Differential Revision: https://reviews.llvm.org/D79628




More information about the All-commits mailing list