Disable Wstringop-overflow

Message ID 20261101160947.655027-1-tdevries@suse.de
State New
Headers
Series Disable Wstringop-overflow |

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 Nov. 1, 2026, 4:09 p.m. UTC
  Recently I submitted a few patches fixing Wstringop-overflow warnings [1][2]
and a patch adding Wno-error=stringop-overflow [3].

All of these patches were dealing with false positives.

A review comment [4] suggested going one step further: to disable the warning.

This patch implements that approach.

Tested on x86_64-linux.

[1] https://sourceware.org/pipermail/gdb-patches/2026-November/231551.html
[2] https://sourceware.org/pipermail/gdb-patches/2026-October/231432.html
[3] https://sourceware.org/pipermail/gdb-patches/2026-October/231431.html
[4] https://sourceware.org/pipermail/gdb-patches/2026-October/231438.html
---
 gdb/configure         | 1 +
 gdbserver/configure   | 1 +
 gdbsupport/configure  | 1 +
 gdbsupport/warning.m4 | 1 +
 4 files changed, 4 insertions(+)


base-commit: 8614f56cb2598044f6f9b60fe551883d26bf7465
  

Patch

diff --git a/gdb/configure b/gdb/configure
index e747ffce49f..340aeb4a715 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -31161,6 +31161,7 @@  build_warnings=" \
 -Wno-error=deprecated-register \
 -Wno-mismatched-tags \
 -Wno-sign-compare -Wno-error=maybe-uninitialized \
+-Wno-stringop-overflow \
 -Wno-switch \
 -Wno-unused \
 -Wpointer-arith \
diff --git a/gdbserver/configure b/gdbserver/configure
index e00e1e1c1c5..e0d4abf2725 100755
--- a/gdbserver/configure
+++ b/gdbserver/configure
@@ -12891,6 +12891,7 @@  build_warnings=" \
 -Wno-error=deprecated-register \
 -Wno-mismatched-tags \
 -Wno-sign-compare -Wno-error=maybe-uninitialized \
+-Wno-stringop-overflow \
 -Wno-switch \
 -Wno-unused \
 -Wpointer-arith \
diff --git a/gdbsupport/configure b/gdbsupport/configure
index 7ed4e259ffe..2ded3338d88 100755
--- a/gdbsupport/configure
+++ b/gdbsupport/configure
@@ -13894,6 +13894,7 @@  build_warnings=" \
 -Wno-error=deprecated-register \
 -Wno-mismatched-tags \
 -Wno-sign-compare -Wno-error=maybe-uninitialized \
+-Wno-stringop-overflow \
 -Wno-switch \
 -Wno-unused \
 -Wpointer-arith \
diff --git a/gdbsupport/warning.m4 b/gdbsupport/warning.m4
index 3148feb740a..07dd6ee72f4 100644
--- a/gdbsupport/warning.m4
+++ b/gdbsupport/warning.m4
@@ -49,6 +49,7 @@  build_warnings=" \
 -Wno-error=deprecated-register \
 -Wno-mismatched-tags \
 -Wno-sign-compare -Wno-error=maybe-uninitialized \
+-Wno-stringop-overflow \
 -Wno-switch \
 -Wno-unused \
 -Wpointer-arith \