gdb: Workaround stringop-overread warning in debuginfod-support.c on s390x
authorMark Wielaard <mark@klomp.org>
Tue, 3 May 2022 23:17:31 +0000 (23:17 +0000)
committerMark Wielaard <mark@klomp.org>
Wed, 4 May 2022 14:07:59 +0000 (16:07 +0200)
commit716e54731f30bc60b2fc52996ebe4fc087420b2e
tree041b27d552dc090fecd5bf4582c757c3bc61e90d
parent5890af36e5112bcbb8d7555e63570f68466e6944
gdb: Workaround stringop-overread warning in debuginfod-support.c on s390x

For some reason g++ 11.2.1 on s390x produces a spurious warning for
stringop-overread in debuginfod_is_enabled for url_view. Add a new
DIAGNOSTIC_IGNORE_STRINGOP_OVERREAD macro to suppress this warning.

include/ChangeLog:

* diagnostics.h (DIAGNOSTIC_IGNORE_STRINGOP_OVERREAD): New
macro.

gdb/ChangeLog:

* debuginfod-support.c (debuginfod_is_enabled): Use
DIAGNOSTIC_IGNORE_STRINGOP_OVERREAD on s390x.
gdb/debuginfod-support.c
include/diagnostics.h