public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/gdb] gdb-17.2-rebase-f44: Fix false gcc6 compilation warning for: bfd/elf64-s390.c
@ 2026-06-27 23:57 Jan Kratochvil
  0 siblings, 0 replies; only message in thread
From: Jan Kratochvil @ 2026-06-27 23:57 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/gdb
Branch : gdb-17.2-rebase-f44
Commit : 4f2557176f95992ee57e735b879331488c612f57
Author : Jan Kratochvil <jan.kratochvil@redhat.com>
Date   : 2016-01-31T19:00:51+01:00
Stats  : +36/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/gdb/c/4f2557176f95992ee57e735b879331488c612f57?branch=gdb-17.2-rebase-f44

Log:
Fix false gcc6 compilation warning for: bfd/elf64-s390.c

---
diff --git a/gdb-bfd-s390-indent-warning.patch b/gdb-bfd-s390-indent-warning.patch
new file mode 100644
index 0000000..bba28d9
--- /dev/null
+++ b/gdb-bfd-s390-indent-warning.patch
@@ -0,0 +1,28 @@
+https://kojipkgs.fedoraproject.org//work/tasks/8536/12758536/build.log
+../../bfd/elf64-s390.c: In function 'elf_s390_reloc_name_lookup':
+../../bfd/elf64-s390.c:340:5: error: statement is indented as if it were guarded by... [-Werror=misleading-indentation]
+     if (strcasecmp (elf64_s390_vtinherit_howto.name, r_name) == 0)
+     ^~
+../../bfd/elf64-s390.c:333:3: note: ...this 'for' clause, but it is not
+   for (i = 0;
+   ^~~
+
+diff --git a/bfd/elf64-s390.c b/bfd/elf64-s390.c
+index 3887e8d..1261044 100644
+--- a/bfd/elf64-s390.c
++++ b/bfd/elf64-s390.c
+@@ -337,10 +337,10 @@ elf_s390_reloc_name_lookup (bfd *abfd ATTRIBUTE_UNUSED,
+ 	&& strcasecmp (elf_howto_table[i].name, r_name) == 0)
+       return &elf_howto_table[i];
+ 
+-    if (strcasecmp (elf64_s390_vtinherit_howto.name, r_name) == 0)
+-      return &elf64_s390_vtinherit_howto;
+-    if (strcasecmp (elf64_s390_vtentry_howto.name, r_name) == 0)
+-      return &elf64_s390_vtentry_howto;
++  if (strcasecmp (elf64_s390_vtinherit_howto.name, r_name) == 0)
++    return &elf64_s390_vtinherit_howto;
++  if (strcasecmp (elf64_s390_vtentry_howto.name, r_name) == 0)
++    return &elf64_s390_vtentry_howto;
+ 
+   return NULL;
+ }

diff --git a/gdb.spec b/gdb.spec
index 0c49f96..af1ed05 100644
--- a/gdb.spec
+++ b/gdb.spec
@@ -27,7 +27,7 @@ Version: 7.10.50.%{snapsrc}
 
 # The release always contains a leading reserved number, start it at 1.
 # `upstream' is not a part of `name' to stay fully rpm dependencies compatible for the testing.
-Release: 47%{?dist}
+Release: 48%{?dist}
 
 License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ and GPLv2+ with exceptions and GPL+ and LGPLv2+ and BSD and Public Domain and GFDL
 Group: Development/Debuggers
@@ -558,6 +558,9 @@ Patch1074: gdb-testsuite-guile.patch
 # [testsuite] Fix false selftest.exp FAIL from system readline-6.3+ (Patrick Palka).
 Patch1075: gdb-testsuite-readline63-sigint.patch
 
+# Fix false gcc6 compilation warning for: bfd/elf64-s390.c
+Patch1076: gdb-bfd-s390-indent-warning.patch
+
 %if 0%{!?rhel:1} || 0%{?rhel} > 6
 # RL_STATE_FEDORA_GDB would not be found for:
 # Patch642: gdb-readline62-ask-more-rh.patch
@@ -872,6 +875,7 @@ find -name "*.info*"|xargs rm -f
 %patch331 -p1
 %patch1075 -p1
 %patch1074 -p1
+%patch1076 -p1
 
 %if 0%{?rhel:1} && 0%{?rhel} <= 7
 %patch1044 -p1
@@ -1389,6 +1393,9 @@ then
 fi
 
 %changelog
+* Sun Jan 31 2016 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.10.50.20160121-48.fc24
+- Fix false gcc6 compilation warning for: bfd/elf64-s390.c
+
 * Sun Jan 31 2016 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.10.50.20160121-47.fc24
 - [testsuite] Fix false selftest.exp FAIL from system readline-6.3+ (Patrick Palka).
 

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

only message in thread, other threads:[~2026-06-27 23:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-27 23:57 [rpms/gdb] gdb-17.2-rebase-f44: Fix false gcc6 compilation warning for: bfd/elf64-s390.c Jan Kratochvil

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