[all-commits] [llvm/llvm-project] 5809a3: [gcov] Add __gcov_dump/__gcov_reset and delete __g...

Fangrui Song via All-commits all-commits at lists.llvm.org
Sat Jul 18 15:08:36 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 5809a32e7c2d79a9a463eb9c15cde994b42e3002
      https://github.com/llvm/llvm-project/commit/5809a32e7c2d79a9a463eb9c15cde994b42e3002
  Author: Fangrui Song <i at maskray.me>
  Date:   2020-07-18 (Sat, 18 Jul 2020)

  Changed paths:
    M clang/lib/Driver/ToolChains/Darwin.cpp
    M clang/test/CodeGen/code-coverage.c
    M clang/test/Driver/darwin-ld.c
    M compiler-rt/lib/profile/GCDAProfiling.c
    M compiler-rt/test/profile/Inputs/instrprof-dlopen-dlclose-main.c
    M compiler-rt/test/profile/Posix/gcov-dlopen.c
    M compiler-rt/test/profile/Posix/gcov-shared-flush.c
    M compiler-rt/test/profile/gcov-__gcov_flush-terminate.c
    M compiler-rt/test/profile/gcov-dump-and-remove.c
    M llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp

  Log Message:
  -----------
  [gcov] Add __gcov_dump/__gcov_reset and delete __gcov_flush

GCC r187297 (2012-05) introduced `__gcov_dump` and `__gcov_reset`.
  `__gcov_flush = __gcov_dump + __gcov_reset`

The resolution to https://gcc.gnu.org/PR93623 ("No need to dump gcdas when forking" target GCC 11.0) removed the unuseful and undocumented __gcov_flush.

Close PR38064.

Reviewed By: calixte, serge-sans-paille

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




More information about the All-commits mailing list