[binutils-gdb] sim: sh: fix -Wimplicit-fallthrough warnings
Michael Frysinger
vapier@sourceware.org
Thu Dec 21 07:03:09 GMT 2023
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=849bdf4ead7a19ebde74fa4caec8643bf71da3e3
commit 849bdf4ead7a19ebde74fa4caec8643bf71da3e3
Author: Mike Frysinger <vapier@gentoo.org>
Date: Thu Dec 21 01:39:26 2023 -0500
sim: sh: fix -Wimplicit-fallthrough warnings
These generate conditional insns where it tests, then fallsthru.
Diff:
---
sim/sh/gencode.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sim/sh/gencode.c b/sim/sh/gencode.c
index 1835cf92ff3..9683dc46b86 100644
--- a/sim/sh/gencode.c
+++ b/sim/sh/gencode.c
@@ -3296,6 +3296,7 @@ ppi_gensim (void)
case 'c':
printf (" if ((((iword >> 8) ^ DSR) & 1) == 0)\n");
printf ("\treturn;\n");
+ printf (" ATTRIBUTE_FALLTHROUGH;\n");
printf (" }\n");
printf (" case %d:\n", p->index + 1);
printf (" {\n");
More information about the Gdb-cvs
mailing list