aboutsummaryrefslogtreecommitdiff
path: root/gcc/configure
diff options
context:
space:
mode:
authorJose E. Marchesi <jose.marchesi@oracle.com>2022-02-23 20:48:30 +0100
committerJose E. Marchesi <jose.marchesi@oracle.com>2022-02-24 16:43:57 +0100
commit39be73d07bb667fd5d313a3398f5399e091f2c0c (patch)
tree3e6cf98da8b0bcb24f3170f64f3b0f7e864cfe94 /gcc/configure
parenta4066d3a5097333f17c0d7be1630a98f3a5b1c1d (diff)
downloadgcc-39be73d07bb667fd5d313a3398f5399e091f2c0c.zip
gcc-39be73d07bb667fd5d313a3398f5399e091f2c0c.tar.gz
gcc-39be73d07bb667fd5d313a3398f5399e091f2c0c.tar.bz2
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 <jose.marchesi@oracle.com> 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.
Diffstat (limited to 'gcc/configure')
-rwxr-xr-xgcc/configure14
1 files changed, 11 insertions, 3 deletions
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