gdb: Workaround stringop-overread warning in debuginfod-support.c on powerpc64
authorMark Wielaard <mark@klomp.org>
Wed, 11 May 2022 22:46:37 +0000 (00:46 +0200)
committerMark Wielaard <mark@klomp.org>
Thu, 12 May 2022 10:39:12 +0000 (12:39 +0200)
commit73a5cb257a21ad38c85932b7be4a903404d91899
tree8ad975ac4cb7e8f12134be0daa611cbb089032ba
parentd1fb8316b09ea35edaaa9a93e32a3adba51aef46
gdb: Workaround stringop-overread warning in debuginfod-support.c on powerpc64

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.
gdb/debuginfod-support.c