[all-commits] [llvm/llvm-project] 013f06: [gcov] Emit GCOV_TAG_OBJECT_SUMMARY/GCOV_TAG_PROGR...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Mon May 11 21:54:27 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 013f06703e132c31cf3e8bdb2ae7c6b89b8f8fc2
https://github.com/llvm/llvm-project/commit/013f06703e132c31cf3e8bdb2ae7c6b89b8f8fc2
Author: Fangrui Song <maskray at google.com>
Date: 2020-05-11 (Mon, 11 May 2020)
Changed paths:
M compiler-rt/lib/profile/GCDAProfiling.c
M llvm/lib/ProfileData/GCOV.cpp
M llvm/test/tools/llvm-cov/Inputs/test_-a.cpp.gcov
M llvm/test/tools/llvm-cov/Inputs/test_-a.h.gcov
M llvm/test/tools/llvm-cov/Inputs/test_-a_-b.cpp.gcov
M llvm/test/tools/llvm-cov/Inputs/test_-a_-b.h.gcov
M llvm/test/tools/llvm-cov/Inputs/test_-a_-b_-c_-u.cpp.gcov
M llvm/test/tools/llvm-cov/Inputs/test_-a_-b_-c_-u.h.gcov
M llvm/test/tools/llvm-cov/Inputs/test_-a_-b_-u.cpp.gcov
M llvm/test/tools/llvm-cov/Inputs/test_-a_-b_-u.h.gcov
M llvm/test/tools/llvm-cov/Inputs/test_missing.cpp.gcov
M llvm/test/tools/llvm-cov/Inputs/test_missing.h.gcov
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_objdir.cpp.gcov
M llvm/test/tools/llvm-cov/Inputs/test_objdir.h.gcov
M llvm/test/tools/llvm-cov/Inputs/test_paths.cpp.gcov
M llvm/test/tools/llvm-cov/Inputs/test_paths.h.gcov
M llvm/test/tools/llvm-cov/gcov-4.7.c
M llvm/test/tools/llvm-cov/gcov-8.c
M llvm/test/tools/llvm-cov/gcov-9.c
Log Message:
-----------
[gcov] Emit GCOV_TAG_OBJECT_SUMMARY/GCOV_TAG_PROGRAM_SUMMARY correctly and fix llvm-cov's decoding of runcount
gcov 9 (r264462) started to use GCOV_TAG_OBJECT_SUMMARY. Before,
GCOV_TAG_PROGRAM_SUMMARY was used.
libclang_rt.profile should emit just one tag according to the version.
Another bug introduced by rL194499 is that the wrong runcount field was
selected.
Fix the two bugs so that gcov can correctly decode "Runs:" from
libclang_rt.profile produced .gcda files, and llvm-cov gcov can
correctly decode "Runs:" from libgcov produced .gcda files.
More information about the All-commits
mailing list