projects
/
platform
/
upstream
/
binutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85433eb
)
sim: sh: fix -Wimplicit-fallthrough warnings
author
Mike Frysinger
<vapier@gentoo.org>
Thu, 21 Dec 2023 06:39:26 +0000
(
01:39
-0500)
committer
Mike Frysinger
<vapier@gentoo.org>
Thu, 21 Dec 2023 06:59:23 +0000
(
01:59
-0500)
These generate conditional insns where it tests, then fallsthru.
sim/sh/gencode.c
patch
|
blob
|
history
diff --git
a/sim/sh/gencode.c
b/sim/sh/gencode.c
index
1835cf9
..
9683dc4
100644
(file)
--- 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");