[CRIU] [PATCH] criu: add -fprofile-update=atomic for builds with gcov
Andrei Vagin
avagin at virtuozzo.com
Fri Mar 2 01:21:18 MSK 2018
Sometimes we see errors like this:
criu/cr-restore.gcda:Merge mismatch for function 106
It proabably means that this gcda file was corrupted. According to the
gcc man page, the -fprofile-update=atomic should fix this problem.
Reported-by: Mr Travis CI
Signed-off-by: Andrei Vagin <avagin at virtuozzo.com>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 6cdda4630..bdfb55b26 100644
--- a/Makefile
+++ b/Makefile
@@ -91,7 +91,7 @@ DEFINES += -D_GNU_SOURCE
WARNINGS := -Wall -Wformat-security
-CFLAGS-GCOV := --coverage -fno-exceptions -fno-inline
+CFLAGS-GCOV := --coverage -fno-exceptions -fno-inline -fprofile-update=atomic
export CFLAGS-GCOV
ifneq ($(GCOV),)
--
2.13.6
More information about the CRIU
mailing list