public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/gdb] gdb-17.2-rebase-f44: [rhel dts libipt] Fix [-Werror=implicit-fallthrough=] with gcc-7.1.1.
Date: Sat, 27 Jun 2026 23:58:15 GMT	[thread overview]
Message-ID: <178260469519.1.10020756335997445996.rpms-gdb-80d902f397d1@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/gdb
Branch : gdb-17.2-rebase-f44
Commit : 80d902f397d12577f9b5af4056b610e668c1dc14
Author : Jan Kratochvil <jan.kratochvil@redhat.com>
Date   : 2017-06-09T07:35:25+02:00
Stats  : +28/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/gdb/c/80d902f397d12577f9b5af4056b610e668c1dc14?branch=gdb-17.2-rebase-f44

Log:
[rhel dts libipt] Fix [-Werror=implicit-fallthrough=] with gcc-7.1.1.

---
diff --git a/gdb.spec b/gdb.spec
index 9d81f3c..6840772 100644
--- a/gdb.spec
+++ b/gdb.spec
@@ -26,7 +26,7 @@ Version: 8.0
 
 # 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: 13%{?dist}
+Release: 14%{?dist}
 
 License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ and GPLv2+ with exceptions and GPL+ and LGPLv2+ and LGPLv3+ and BSD and Public Domain and GFDL
 Group: Development/Debuggers
@@ -672,6 +672,10 @@ Patch1153: gdb-add-index-chmod.patch
 #=fedoratest
 Patch1155: gdb-rhbz1398387-tab-crash-test.patch
 
+# [rhel dts libipt] Fix [-Werror=implicit-fallthrough=] with gcc-7.1.1.
+#=push+jan
+Patch1171: v1.6.1-implicit-fallthrough.patch
+
 %if 0%{!?rhel:1} || 0%{?rhel} > 6
 # RL_STATE_FEDORA_GDB would not be found for:
 # Patch642: gdb-readline62-ask-more-rh.patch
@@ -889,6 +893,7 @@ tar xzf %{SOURCE7}
 (
  cd processor-trace-%{libipt_version}
 %patch1142 -p1
+%patch1171 -p1
 )
 %endif
 
@@ -1610,6 +1615,9 @@ then
 fi
 
 %changelog
+* Fri Jun  9 2017 Jan Kratochvil <jan.kratochvil@redhat.com> - 8.0-14.fc26
+- [rhel dts libipt] Fix [-Werror=implicit-fallthrough=] with gcc-7.1.1.
+
 * Fri Jun  9 2017 Jan Kratochvil <jan.kratochvil@redhat.com> - 8.0-13.fc26
 - Rebase to FSF GDB 8.0 final.
 - [rhel7 dts] Rebase bundled libipt to 1.6.1.

diff --git a/v1.6.1-implicit-fallthrough.patch b/v1.6.1-implicit-fallthrough.patch
new file mode 100644
index 0000000..f2ddb4f
--- /dev/null
+++ b/v1.6.1-implicit-fallthrough.patch
@@ -0,0 +1,19 @@
+gcc-7.1.1-1.fc27.x86_64
+/home/jkratoch/redhat/fedora/libipt/master/processor-trace-1.6.1/libipt/src/pt_block_decoder.c: In function ‘pt_blk_proceed_no_event_cached’:
+/home/jkratoch/redhat/fedora/libipt/master/processor-trace-1.6.1/libipt/src/pt_block_decoder.c:2282:6: error: this statement may fall through [-Werror=implicit-fallthrough=]
+   if (bce.isize) {
+      ^
+/home/jkratoch/redhat/fedora/libipt/master/processor-trace-1.6.1/libipt/src/pt_block_decoder.c:2328:2: note: here
+  case ptbq_decode: {
+  ^~~~
+
+--- processor-trace-1.6.1-orig/libipt/src/pt_block_decoder.c	2017-05-31 13:30:32.000000000 +0200
++++ processor-trace-1.6.1/libipt/src/pt_block_decoder.c	2017-06-09 07:24:12.644587611 +0200
+@@ -2324,6 +2324,7 @@ static int pt_blk_proceed_no_event_cache
+ 		}
+ 
+ 		/* Fall through to ptbq_decode. */
++		__attribute__ ((fallthrough));
+ 
+ 	case ptbq_decode: {
+ 		struct pt_insn_ext iext;

                 reply	other threads:[~2026-06-27 23:58 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=178260469519.1.10020756335997445996.rpms-gdb-80d902f397d1@fedoraproject.org \
    --to=jan.kratochvil@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