[all-commits] [llvm/llvm-project] f4261e: [Clang] Enable -fsanitize=leak on Fuchsia targets

Roland McGrath via All-commits all-commits at lists.llvm.org
Mon Jan 27 23:38:20 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f4261e1121293c1f5a3aba416668e6309099f9da
      https://github.com/llvm/llvm-project/commit/f4261e1121293c1f5a3aba416668e6309099f9da
  Author: Roland McGrath <mcgrathr at google.com>
  Date:   2020-01-27 (Mon, 27 Jan 2020)

  Changed paths:
    M clang/lib/Driver/SanitizerArgs.cpp
    M clang/lib/Driver/ToolChains/CommonArgs.cpp
    M clang/lib/Driver/ToolChains/Fuchsia.cpp
    A clang/test/Driver/Inputs/resource_dir_with_per_target_subdir/lib/aarch64-fuchsia/libclang_rt.lsan.a
    A clang/test/Driver/Inputs/resource_dir_with_per_target_subdir/lib/x86_64-fuchsia/libclang_rt.lsan.a
    M clang/test/Driver/fuchsia.c

  Log Message:
  -----------
  [Clang] Enable -fsanitize=leak on Fuchsia targets

This required some fixes to the generic code for two issues:

1. -fsanitize=safe-stack is default on x86_64-fuchsia and is *not* incompatible with -fsanitize=leak on Fuchisa
2. -fsanitize=leak and other static-only runtimes must not be omitted under -shared-libsan (which is the default on Fuchsia)

Patch By: mcgrathr

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




More information about the All-commits mailing list