Bug 96267 - gcov-tool merge more coverage data error.
Summary: gcov-tool merge more coverage data error.
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: gcov-profile (show other bugs)
Version: 10.1.0
: P3 normal
Target Milestone: ---
Assignee: Martin Liška
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-21 13:07 UTC by John Dong
Modified: 2020-07-23 13:05 UTC (History)
1 user (show)

See Also:
Host:
Target: aarch64be
Build:
Known to work:
Known to fail: 10.1.0
Last reconfirmed: 2020-07-23 00:00:00


Attachments
gcda files (264 bytes, application/x-gzip)
2020-07-21 13:07 UTC, John Dong
Details
add missing IN_GCOV_TOOL macro (512 bytes, application/mbox)
2020-07-21 13:21 UTC, John Dong
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Dong 2020-07-21 13:07:11 UTC
Created attachment 48907 [details]
gcda files

Hi, I use a cross compiler using a cross compiler (--build=x86_64-suse-linux --host=x86_64-suse-linux --target=aarch64_be-linux-gnu) gcov-tool to merge tree profiles generated by big endian machine. 
gcov-tool merge dir1 dir2 -o dir12
gcov-tool merge dir3 dir12 -o dir123

I am confronted with "./main.gcda:incorrect gcov version xxxxxx vs yyyyyyy" error.

known to fail on all active branches.
Comment 1 John Dong 2020-07-21 13:21:40 UTC
Created attachment 48908 [details]
add missing IN_GCOV_TOOL macro

hmmm refer to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95332
Fix missing IN_GCOV_TOOL macro. please review it.
Comment 2 GCC Commits 2020-07-23 13:04:31 UTC
The master branch has been updated by Martin Liska <marxin@gcc.gnu.org>:

https://gcc.gnu.org/g:de8bfcc8e45d9c77c48c9f071836698aa6db5ff3

commit r11-2291-gde8bfcc8e45d9c77c48c9f071836698aa6db5ff3
Author: Dong JianQiang <dongjianqiang2@huawei.com>
Date:   Wed Jul 22 01:24:52 2020 +0800

    gcov-tool: Fix merging of different endian coverage data [PR96267]
    
    2020-07-21  Dong JianQiang  <dongjianqiang2@huawei.com>
    
    gcc/ChangeLog:
    
            PR gcov-profile/96267
            * gcov-io.c (gcov_open): enable if IN_GCOV_TOOL.
Comment 3 Martin Liška 2020-07-23 13:05:31 UTC
Thank you for the suggested patch, I've just installed it.