From 058c8ff4eaea0668d752106973b9a0c78df87672 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Fri, 14 Nov 2025 07:11:05 +0300 Subject: [PATCH 1/2] Travis CI: Replace 'configure --enable-gcov' to 'gcc --coverage -O0' --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 09a4e187..38e04162 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,11 +14,11 @@ jobs: - lcov compiler: gcc env: - - CONF_OPTIONS="--enable-gcov --enable-shared" + - CONF_OPTIONS="--enable-shared" - CC_FOR_CHECK=gcc - MAKEFILE_TARGET=all - REPORT_COVERAGE=true - - CFLAGS_EXTRA="-fprofile-update=atomic -march=native -D DEBUG_RUN_ONE_TEST -D VERBOSE_STACK" + - CFLAGS_EXTRA="--coverage -O0 -fprofile-update=atomic -march=native -D DEBUG_RUN_ONE_TEST -D VERBOSE_STACK" - addons: apt: packages: From a3fae1cc12010c9cd8615dcb4dc74ed381af1ab2 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Fri, 14 Nov 2025 07:17:19 +0300 Subject: [PATCH 2/2] Discontinue support of configure '--enable-gcov' option This option seems to be used only internally in this project. * configure.ac (gcov): Remove `AC_ARG_ENABLE()` for it. * configure.ac [$enable_gcov==yes] (CFLAGS): Do not add `--coverage`; do not filter out '-O' option. --- configure.ac | 8 -------- 1 file changed, 8 deletions(-) diff --git a/configure.ac b/configure.ac index 9df23a3a..f29e18da 100644 --- a/configure.ac +++ b/configure.ac @@ -131,14 +131,6 @@ if test "$enable_atomic_intrinsics" = no; then [Define to avoid GCC atomic intrinsics even if available.]) fi -AC_ARG_ENABLE(gcov, AS_HELP_STRING([--enable-gcov], - [Turn on code coverage analysis])) -if test "$enable_gcov" = "yes"; then - CFLAGS="$CFLAGS --coverage" - # Turn off code optimization to get accurate line numbers. - CFLAGS=`echo "$CFLAGS" | sed -e 's/-O\(1\|2\|3\|4\|s\|fast\)\?//g'` -fi - AC_ARG_ENABLE(gpl, [AS_HELP_STRING([--disable-gpl], [Do not build atomic_ops_gpl library])])