From: Tom de Vries <tdevries@suse.de>
To: gdb-patches@sourceware.org
Subject: [PATCH] [gdb] Disable Wstringop-overflow
Date: Sun, 1 Nov 2026 17:09:47 +0100 [thread overview]
Message-ID: <20261101160947.655027-1-tdevries@suse.de> (raw)
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(+)
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 \
base-commit: 8614f56cb2598044f6f9b60fe551883d26bf7465
--
2.51.0
next reply other threads:[~2026-11-01 16:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-01 16:09 Tom de Vries [this message]
2026-11-20 15:24 ` Tom de Vries
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261101160947.655027-1-tdevries@suse.de \
--to=tdevries@suse.de \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox