From 0d98e1081184db4c77b27d2cab5cf12653a30ea0 Mon Sep 17 00:00:00 2001 From: Kevin Buettner Date: Sat, 23 Jan 2021 00:31:03 -0500 Subject: [PATCH] Add -Wno-stringop-overread to CFLAGS to work around gcc bug (RH BZ 1912913) --- gdb.spec | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 +- Add -Wno-stringop-overread to CFLAGS to work around gcc + bug (RH BZ 1912913) + * Tue Jan 12 2021 Keith Seitz - 10.1-3 - Disable xxhash support for RHEL.