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.
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.
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.
Thank you for the suggested patch, I've just installed it.