mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 01:07:52 +00:00
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.
This commit is contained in:
@@ -76,6 +76,9 @@
|
||||
# define DIAGNOSTIC_IGNORE_STRINGOP_TRUNCATION \
|
||||
DIAGNOSTIC_IGNORE ("-Wstringop-truncation")
|
||||
|
||||
# define DIAGNOSTIC_IGNORE_STRINGOP_OVERREAD \
|
||||
DIAGNOSTIC_IGNORE ("-Wstringop-overread")
|
||||
|
||||
# define DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL \
|
||||
DIAGNOSTIC_IGNORE ("-Wformat-nonliteral")
|
||||
|
||||
@@ -108,6 +111,10 @@
|
||||
# define DIAGNOSTIC_IGNORE_STRINGOP_TRUNCATION
|
||||
#endif
|
||||
|
||||
#ifndef DIAGNOSTIC_IGNORE_STRINGOP_OVERREAD
|
||||
# define DIAGNOSTIC_IGNORE_STRINGOP_OVERREAD
|
||||
#endif
|
||||
|
||||
#ifndef DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL
|
||||
# define DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user