[all-commits] [llvm/llvm-project] 01899b: [gcov] Improve .gcno compatibility with gcov and u...

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Jun 3 19:30:53 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 01899bb4e41178af6f4cf7b32833e661fe1e3322
      https://github.com/llvm/llvm-project/commit/01899bb4e41178af6f4cf7b32833e661fe1e3322
  Author: Fangrui Song <maskray at google.com>
  Date:   2020-06-03 (Wed, 03 Jun 2020)

  Changed paths:
    M llvm/include/llvm/ProfileData/GCOV.h
    M llvm/lib/ProfileData/GCOV.cpp
    R llvm/test/tools/llvm-cov/Inputs/copy_block_helper.gcda
    R llvm/test/tools/llvm-cov/Inputs/copy_block_helper.gcno
    M llvm/test/tools/llvm-cov/Inputs/test.gcda
    M llvm/test/tools/llvm-cov/Inputs/test.gcno
    M llvm/test/tools/llvm-cov/Inputs/test.h
    R llvm/test/tools/llvm-cov/Inputs/test_-a.cpp.gcov
    R llvm/test/tools/llvm-cov/Inputs/test_-a.h.gcov
    R llvm/test/tools/llvm-cov/Inputs/test_-a_-b.cpp.gcov
    R llvm/test/tools/llvm-cov/Inputs/test_-a_-b.h.gcov
    R llvm/test/tools/llvm-cov/Inputs/test_-a_-b_-c_-u.cpp.gcov
    R llvm/test/tools/llvm-cov/Inputs/test_-a_-b_-c_-u.h.gcov
    R llvm/test/tools/llvm-cov/Inputs/test_-a_-b_-u.cpp.gcov
    R llvm/test/tools/llvm-cov/Inputs/test_-a_-b_-u.h.gcov
    M llvm/test/tools/llvm-cov/Inputs/test_-b.output
    M llvm/test/tools/llvm-cov/Inputs/test_-f.output
    R llvm/test/tools/llvm-cov/Inputs/test_long_file_names.output
    R llvm/test/tools/llvm-cov/Inputs/test_long_paths.output
    R llvm/test/tools/llvm-cov/Inputs/test_missing.cpp.gcov
    R llvm/test/tools/llvm-cov/Inputs/test_missing.h.gcov
    R llvm/test/tools/llvm-cov/Inputs/test_missing.output
    M llvm/test/tools/llvm-cov/Inputs/test_no_gcda.cpp.gcov
    M llvm/test/tools/llvm-cov/Inputs/test_no_gcda.h.gcov
    M llvm/test/tools/llvm-cov/Inputs/test_no_gcda.output
    M llvm/test/tools/llvm-cov/Inputs/test_no_options.cpp.gcov
    M llvm/test/tools/llvm-cov/Inputs/test_no_options.h.gcov
    M llvm/test/tools/llvm-cov/Inputs/test_no_options.output
    M llvm/test/tools/llvm-cov/Inputs/test_no_output.output
    R llvm/test/tools/llvm-cov/Inputs/test_objdir.cpp.gcov
    R llvm/test/tools/llvm-cov/Inputs/test_objdir.h.gcov
    M llvm/test/tools/llvm-cov/Inputs/test_paths.gcda
    M llvm/test/tools/llvm-cov/Inputs/test_paths.gcno
    M llvm/test/tools/llvm-cov/Inputs/test_preserve_paths.output
    R llvm/test/tools/llvm-cov/copy_block_helper.m
    M llvm/test/tools/llvm-cov/llvm-cov.test
    R llvm/test/tools/llvm-cov/range_based_for.cpp

  Log Message:
  -----------
  [gcov] Improve .gcno compatibility with gcov and use DataExtractor

llvm-cov.test and many Inputs/test* files contain wrong tests.
This patch rewrites a large portion of these files.
The pre-canned .gcno & .gcda are replaced by binaries produced by
clang --coverage (compatible with gcov 4.8~7)
(after some GCDAProfiling.c bugs were fixed by my previous commits).

Also make llvm-cov gcov on a little-endian host capable to parse big-endian .gcno and .gcda,
and make llvm-cov gcov on big-endian host capable to parse little-endian .gcno and .gcda




More information about the All-commits mailing list