[all-commits] [llvm/llvm-project] 2f6ac2: sanitizers: turn thread-safety errors into warnings

Dmitry Vyukov via All-commits all-commits at lists.llvm.org
Tue Aug 10 11:03:43 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2f6ac22b083eb9eedf8a27c0e41cc9550a15739a
      https://github.com/llvm/llvm-project/commit/2f6ac22b083eb9eedf8a27c0e41cc9550a15739a
  Author: Dmitry Vyukov <dvyukov at google.com>
  Date:   2021-08-10 (Tue, 10 Aug 2021)

  Changed paths:
    M compiler-rt/CMakeLists.txt

  Log Message:
  -----------
  sanitizers: turn thread-safety errors into warnings

There were 2 issues reported on https://reviews.llvm.org/D105716:
1. FreeBSD phtread.h is annotated with thread-safety attributes
and this causes errors in gtest headers.
2. If sanitizers are compiled with an older versions of clang
(which supports the annotations, but has some false positives
in analysis not present in later versions of clang), compilation
fails with errors.

Switch the errors to warnings by default.
Some CI bots enable COMPILER_RT_ENABLE_WERROR, which should
turn these warnings back into errors.

Reviewed By: nikic

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




More information about the All-commits mailing list