https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95332

            Bug ID: 95332
           Summary: gcov-tool merge:"not a gcov data file"
           Product: gcc
           Version: 7.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: gcov-profile
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dongjianqiang2 at huawei dot com
                CC: marxin at gcc dot gnu.org
  Target Milestone: ---

Created attachment 48605
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48605&action=edit
a patch for gcov-tool.

when I invoke gcov-tool merge dir1 dir2 where dir1 and dir2 are the directories
containing the .gcda files which I intend to combine, I am confronted with
"./test.gcda:not a gcov data file" errors for each file in dir1. After studying
the libgcov code, I have figured out it's an endianness issue. I'm using a
cross compiler --build=x86_64-suse-linux --host=x86_64-suse-linux
--target=aarch64_be-linux-gnu, gcov-tool cannot merge the coverage data
generated by big endian machine. here is patch to fix it. pls review.

Reply via email to