[all-commits] [llvm/llvm-project] 9360f1: [Sanitizer] Fix sanitizer tests without reducing o...

Julian Lettner via All-commits all-commits at lists.llvm.org
Thu Feb 11 15:22:59 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9360f1a1911edee4c6f4c7d070bdaa1ca26016cc
      https://github.com/llvm/llvm-project/commit/9360f1a1911edee4c6f4c7d070bdaa1ca26016cc
  Author: Julian Lettner <julian.lettner at apple.com>
  Date:   2021-02-11 (Thu, 11 Feb 2021)

  Changed paths:
    M compiler-rt/test/tsan/blacklist2.cpp
    M compiler-rt/test/tsan/free_race.c
    M compiler-rt/test/tsan/longjmp3.cpp
    M compiler-rt/test/tsan/longjmp4.cpp
    M compiler-rt/test/tsan/race_on_heap.cpp
    M compiler-rt/test/tsan/race_top_suppression.cpp
    M compiler-rt/test/tsan/simple_stack.c
    M compiler-rt/test/tsan/sleep_sync.cpp
    M compiler-rt/test/ubsan/TestCases/Misc/missing_return.cpp

  Log Message:
  -----------
  [Sanitizer] Fix sanitizer tests without reducing optimization levels

As discussed, these tests are compiled with optimization to mimic real
sanitizer usage [1].

Let's mark relevant functions with `noinline` so we can continue to
check against the stack traces in the report.

[1] https://reviews.llvm.org/D96198

This reverts commit 04af72c5423eb5ff7c0deba2d08cb46d583bb9d4.

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




More information about the All-commits mailing list