[all-commits] [llvm/llvm-project] b56b1e: [gcov] Default coverage version to '408*' and dele...

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue May 12 09:14:25 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b56b1e67e38e5f18318b411587a952bc7c586ac4
      https://github.com/llvm/llvm-project/commit/b56b1e67e38e5f18318b411587a952bc7c586ac4
  Author: Fangrui Song <maskray at google.com>
  Date:   2020-05-12 (Tue, 12 May 2020)

  Changed paths:
    M clang/include/clang/Basic/CodeGenOptions.def
    M clang/include/clang/Driver/CC1Options.td
    M clang/lib/Basic/CodeGenOptions.cpp
    M clang/lib/CodeGen/BackendUtil.cpp
    M clang/lib/Frontend/CompilerInvocation.cpp
    M llvm/include/llvm/ProfileData/GCOV.h
    M llvm/include/llvm/Transforms/Instrumentation.h
    M llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp
    A llvm/test/Transforms/GCOVProfiling/exit-block.ll
    R llvm/test/Transforms/GCOVProfiling/return-block.ll
    M llvm/test/Transforms/GCOVProfiling/version.ll

  Log Message:
  -----------
  [gcov] Default coverage version to '408*' and delete CC1 option -coverage-exit-block-before-body

gcov 4.8 (r189778) moved the exit block from the last to the second.
The .gcda format is compatible with 4.7 but

* decoding libgcov 4.7 produced .gcda with gcov [4.7,8) can mistake the
  exit block, emit bogus `%s:'%s' has arcs from exit block\n` warnings,
  and print wrong `" returned %s` for branch statistics (-b).
* decoding libgcov 4.8 produced .gcda with gcov 4.7 has similar issues.

Also, rename "return block" to "exit block" because the latter is the
appropriate term.




More information about the All-commits mailing list