Hi.

There's one obvious patch that I'm going to commmit on behalf of Dong.

Martin

2020-07-21  Dong JianQiang  <dongjianqia...@huawei.com>

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.27.0

Reply via email to