public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/gdb] gdb-17.2-rebase-f44: Add -Wno-stringop-overread to CFLAGS to work around gcc
@ 2026-06-28  0:00 Kevin Buettner
  0 siblings, 0 replies; only message in thread
From: Kevin Buettner @ 2026-06-28  0:00 UTC (permalink / raw)
  To: git-commits

          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.
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-28  0:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-28  0:00 [rpms/gdb] gdb-17.2-rebase-f44: Add -Wno-stringop-overread to CFLAGS to work around gcc Kevin Buettner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox