From 39be73d07bb667fd5d313a3398f5399e091f2c0c Mon Sep 17 00:00:00 2001 From: "Jose E. Marchesi" Date: Wed, 23 Feb 2022 20:48:30 +0100 Subject: bpf: do not --enable-gcov for bpf-*-* targets This patch changes the build machinery in order to disable the build of GCOV (both compiler and libgcc) in bpf-*-* targets. The reason for this change is that BPF is (currently) too restricted in order to support the coverage instrumentalization. Tested in bpf-unknown-none and x86_64-linux-gnu targets. 2022-02-23 Jose E. Marchesi gcc/ChangeLog PR target/104656 * configure.ac: --disable-gcov if targetting bpf-*. * configure: Regenerate. libgcc/ChangeLog PR target/104656 * configure.ac: --disable-gcov if targetting bpf-*. * configure: Regenerate. --- gcc/configure | 14 +++++++++++--- gcc/configure.ac | 10 +++++++++- 2 files changed, 20 insertions(+), 4 deletions(-) (limited to 'gcc') diff --git a/gcc/configure b/gcc/configure index 258b17a..22eb345 100755 --- a/gcc/configure +++ b/gcc/configure @@ -8085,12 +8085,20 @@ fi if test "${enable_gcov+set}" = set; then : enableval=$enable_gcov; else - enable_gcov=yes + case $target in + bpf-*-*) + enable_gcov=no + ;; + *) + enable_gcov=yes + ;; + esac fi + # Check whether --with-specs was given. if test "${with_specs+set}" = set; then : withval=$with_specs; CONFIGURE_SPECS=$withval @@ -19659,7 +19667,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 19662 "configure" +#line 19670 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -19765,7 +19773,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 19768 "configure" +#line 19776 "configure" #include "confdefs.h" #if HAVE_DLFCN_H diff --git a/gcc/configure.ac b/gcc/configure.ac index 06750ce..20da909 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -1041,7 +1041,15 @@ AC_SUBST(enable_shared) AC_ARG_ENABLE(gcov, [ --disable-gcov don't provide libgcov and related host tools], -[], [enable_gcov=yes]) +[], [case $target in + bpf-*-*) + enable_gcov=no + ;; + *) + enable_gcov=yes + ;; + esac]) + AC_SUBST(enable_gcov) AC_ARG_WITH(specs, -- cgit v1.1