From de8bfcc8e45d9c77c48c9f071836698aa6db5ff3 Mon Sep 17 00:00:00 2001 From: Dong JianQiang Date: Wed, 22 Jul 2020 01:24:52 +0800 Subject: [PATCH] gcov-tool: Fix merging of different endian coverage data [PR96267] 2020-07-21 Dong JianQiang gcc/ChangeLog: PR gcov-profile/96267 * gcov-io.c (gcov_open): enable if IN_GCOV_TOOL. --- gcc/gcov-io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/gcov-io.c b/gcc/gcov-io.c index ac60f9baf47..4db56f8aacf 100644 --- a/gcc/gcov-io.c +++ b/gcc/gcov-io.c @@ -144,7 +144,7 @@ gcov_open (const char *name, int mode) gcov_var.offset = gcov_var.length = 0; gcov_var.overread = -1u; gcov_var.error = 0; -#if !IN_LIBGCOV +#if !IN_LIBGCOV || defined (IN_GCOV_TOOL) gcov_var.endian = 0; #endif #if GCOV_LOCKED -- 2.30.2