[PATCH] gdb: Workaround stringop-overread warning in debuginfod-support.c on powerpc64

Simon Marchi simark@simark.ca
Thu May 12 00:49:22 GMT 2022



On 2022-05-11 18:52, Mark Wielaard wrote:
> Just like on s390x with g++ 11.2.1, ppc64le with g++ 11.3.1 produces a
> spurious warning for stringop-overread in debuginfod_is_enabled
> for url_view. Also suppress it on powerpc64.
> 
>  gdb/ChangeLog:
> 
>     * debuginfod-support.c (debuginfod_is_enabled): Use
>       DIAGNOSTIC_IGNORE_STRINGOP_OVERREAD on powerpc64.

LGTM.

> ---
> 
> Found with the new fedora-ppc64le builder:
> https://builder.sourceware.org/buildbot/#/builders/gdb-fedora-ppc64le
> 
> Alternatively we could just suppress this warning for any architecture.

Let's make a deal, if you find a 3rd architecture where this is the case
we do that, alright? ;)

Simon


More information about the Gdb-patches mailing list