https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121149

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
            Summary|[16 Regression] build       |[13/14/15/16 Regression]
                   |broken for bpf in libgcc    |build broken for bpf in
                   |                            |libgcc
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2025-07-18

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>But, when fixing that, I suggest making that generic (not bpf-specific) for 
>targets where gcov can never be applied.
(But is BPF really such a target?)

There is already some code in libgcc which should disabled gcov for bpf but
maybe it is not working.

There looks to be a typo in libgcc/configure.ac:
```
AC_ARG_ENABLE(gcov,
[  --disable-gcov          don't provide libgcov and related host tools],
[], [case $target in
       bpf-*-*)
         enable_gcov=no
       ;;
       *)
         enable_gcov=yes
       ;;
     esac])
AC_SUBST(enable_gcov)

```

target there should be host .

Does s/$target/$host/ in libgcc/configure.ac (and regenerate libgcc/configure)
fix this for you?

If so then the patch to fix this is obvious.

Reply via email to