public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Kevin Buettner <kevinb@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/gdb] gdb-17.2-rebase-f44: Add -Wno-stringop-overread to CFLAGS to work around gcc
Date: Sun, 28 Jun 2026 00:00:07 GMT [thread overview]
Message-ID: <178260480780.1.17043714848732277843.rpms-gdb-0d98e1081184@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/gdb
Branch : gdb-17.2-rebase-f44
Commit : 0d98e1081184db4c77b27d2cab5cf12653a30ea0
Author : Kevin Buettner <kevinb@redhat.com>
Date : 2021-01-23T00:31:03-05:00
Stats : +12/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/gdb/c/0d98e1081184db4c77b27d2cab5cf12653a30ea0?branch=gdb-17.2-rebase-f44
Log:
Add -Wno-stringop-overread to CFLAGS to work around gcc
bug (RH BZ 1912913)
---
diff --git a/gdb.spec b/gdb.spec
index c1df86f..2a89472 100644
--- a/gdb.spec
+++ b/gdb.spec
@@ -618,6 +618,10 @@ GDB_MINIMAL_CONFIGURE_FLAGS="\
export CFLAGS="$RPM_OPT_FLAGS %{?_with_asan:-fsanitize=address}"
export LDFLAGS="%{?__global_ldflags} %{?_with_asan:-fsanitize=address}"
+# Workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1912913
+# Take this out when fixed in gcc/g++.
+CFLAGS="$CFLAGS -Wno-stringop-overread"
+
export CXXFLAGS="$CFLAGS"
# --htmldir and --pdfdir are not used as they are used from %{gdb_build}.
@@ -649,6 +653,10 @@ cd %{gdb_build}$fprofile
export CFLAGS="$RPM_OPT_FLAGS %{?_with_asan:-fsanitize=address}"
export LDFLAGS="%{?__global_ldflags} %{?_with_asan:-fsanitize=address}"
+# Workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1912913
+# Take this out when fixed in gcc/g++.
+CFLAGS="$CFLAGS -Wno-stringop-overread"
+
%if 0%{!?rhel:1} || 0%{?rhel} > 7
CFLAGS="$CFLAGS -DDNF_DEBUGINFO_INSTALL"
%endif
@@ -1185,6 +1193,10 @@ fi
%endif
%changelog
+* Sat Jan 23 2021 Kevin Buettner <kevinb@redhat.com>
+- Add -Wno-stringop-overread to CFLAGS to work around gcc
+ bug (RH BZ 1912913)
+
* Tue Jan 12 2021 Keith Seitz <keiths@redhat.com> - 10.1-3
- Disable xxhash support for RHEL.
reply other threads:[~2026-06-28 0:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=178260480780.1.17043714848732277843.rpms-gdb-0d98e1081184@fedoraproject.org \
--to=kevinb@redhat.com \
--cc=git-commits@fedoraproject.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