All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [RFC PATCH-for-4.1] target/i386: Correct misplaced break statement in gen_shiftd_rm_T1()
@ 2019-07-19 11:23 Philippe Mathieu-Daudé
  2019-07-19 11:45 ` Paolo Bonzini
  0 siblings, 1 reply; 4+ messages in thread
From: Philippe Mathieu-Daudé @ 2019-07-19 11:23 UTC (permalink / raw)
  To: qemu-devel
  Cc: Paolo Bonzini, Philippe Mathieu-Daudé, Eduardo Habkost,
	Richard Henderson

Reported by GCC9 when building with CFLAG -Wimplicit-fallthrough=2:

    CC      target/i386/translate.o
  target/i386/translate.c: In function ‘gen_shiftd_rm_T1’:
  target/i386/translate.c:1785:12: error: this statement may fall through [-Werror=implicit-fallthrough=]
   1785 |         if (is_right) {
        |            ^
  target/i386/translate.c:1810:5: note: here
   1810 |     default:
        |     ^~~~~~~
  cc1: all warnings being treated as errors

Fixes: f437d0a3c24
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
 target/i386/translate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/i386/translate.c b/target/i386/translate.c
index 03150a86e2..4b2b5937ca 100644
--- a/target/i386/translate.c
+++ b/target/i386/translate.c
@@ -1805,8 +1805,8 @@ static void gen_shiftd_rm_T1(DisasContext *s, TCGMemOp ot, int op1,
             tcg_gen_shri_i64(s->tmp0, s->tmp0, 32);
             tcg_gen_shri_i64(s->T0, s->T0, 32);
         }
-        break;
 #endif
+        break;
     default:
         tcg_gen_subi_tl(s->tmp0, count, 1);
         if (is_right) {
-- 
2.20.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-07-19 12:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-19 11:23 [Qemu-devel] [RFC PATCH-for-4.1] target/i386: Correct misplaced break statement in gen_shiftd_rm_T1() Philippe Mathieu-Daudé
2019-07-19 11:45 ` Paolo Bonzini
2019-07-19 11:51   ` Peter Maydell
2019-07-19 12:13     ` Paolo Bonzini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.