[all-commits] [llvm/llvm-project] 414482: Prevent generation of dependency on _cxa_guard for...

serge-sans-paille via All-commits all-commits at lists.llvm.org
Wed Jun 9 00:40:54 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 414482751452e54710f16bae58458c66298aaf69
      https://github.com/llvm/llvm-project/commit/414482751452e54710f16bae58458c66298aaf69
  Author: serge-sans-paille <sguelton at redhat.com>
  Date:   2021-06-09 (Wed, 09 Jun 2021)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cpp

  Log Message:
  -----------
  Prevent generation of dependency on _cxa_guard for static initialization

This fixes an issue introduced by https://reviews.llvm.org/D70662

Function-scope static initialization are guarded in C++, so we should probably
not use it because it introduces a dependency on __cxa_guard* symbols.
In the context of clang, libasan is linked statically, and it currently needs to
the odd situation where compiling C code with clang and asan requires -lstdc++

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




More information about the All-commits mailing list