[2/2,gdb/build] Add Wno-error=stringop-overflow

Message ID 20261028125445.1745119-3-tdevries@suse.de
State New
Headers
Series Two Wstringop-overflow updates |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 success Build passed
linaro-tcwg-bot/tcwg_gdb_build--master-arm success Build passed
linaro-tcwg-bot/tcwg_gdb_check--master-arm success Test passed
linaro-tcwg-bot/tcwg_gdb_check--master-aarch64 success Test passed

Commit Message

Tom de Vries Oct. 28, 2026, 12:54 p.m. UTC
  Add Wno-error=stringop-overflow to the build warning setup, to account for the
fact that it's likely to have false positives [1].

[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88443
---
 gdb/configure         | 1 +
 gdbserver/configure   | 1 +
 gdbsupport/configure  | 1 +
 gdbsupport/warning.m4 | 1 +
 4 files changed, 4 insertions(+)
  

Patch

diff --git a/gdb/configure b/gdb/configure
index e747ffce49f..76ad40871a9 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -31159,6 +31159,7 @@  build_warnings=" \
 -Wmissing-declarations \
 -Wno-char-subscripts \
 -Wno-error=deprecated-register \
+-Wno-error=stringop-overflow \
 -Wno-mismatched-tags \
 -Wno-sign-compare -Wno-error=maybe-uninitialized \
 -Wno-switch \
diff --git a/gdbserver/configure b/gdbserver/configure
index e00e1e1c1c5..6c24a7b8fc0 100755
--- a/gdbserver/configure
+++ b/gdbserver/configure
@@ -12889,6 +12889,7 @@  build_warnings=" \
 -Wmissing-declarations \
 -Wno-char-subscripts \
 -Wno-error=deprecated-register \
+-Wno-error=stringop-overflow \
 -Wno-mismatched-tags \
 -Wno-sign-compare -Wno-error=maybe-uninitialized \
 -Wno-switch \
diff --git a/gdbsupport/configure b/gdbsupport/configure
index 7ed4e259ffe..882b91017ab 100755
--- a/gdbsupport/configure
+++ b/gdbsupport/configure
@@ -13892,6 +13892,7 @@  build_warnings=" \
 -Wmissing-declarations \
 -Wno-char-subscripts \
 -Wno-error=deprecated-register \
+-Wno-error=stringop-overflow \
 -Wno-mismatched-tags \
 -Wno-sign-compare -Wno-error=maybe-uninitialized \
 -Wno-switch \
diff --git a/gdbsupport/warning.m4 b/gdbsupport/warning.m4
index 3148feb740a..558fd2177da 100644
--- a/gdbsupport/warning.m4
+++ b/gdbsupport/warning.m4
@@ -47,6 +47,7 @@  build_warnings=" \
 -Wmissing-declarations \
 -Wno-char-subscripts \
 -Wno-error=deprecated-register \
+-Wno-error=stringop-overflow \
 -Wno-mismatched-tags \
 -Wno-sign-compare -Wno-error=maybe-uninitialized \
 -Wno-switch \