aboutsummaryrefslogtreecommitdiff
path: root/disas
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2020-06-30 07:03:44 +0200
committerThomas Huth <thuth@redhat.com>2020-07-13 11:40:52 +0200
commitccb237090fdafedce56cb8b62f451a09ad5031c9 (patch)
tree02b8e07bcbf417f0bbfbd326fda3954ac6293e04 /disas
parent7aa12aa215e12ab2d41c60ba57e82d3e2af9f38e (diff)
disas/sh4: Add missing fallthrough annotations
Add fallthrough annotations to be able to compile the code without warnings with -Wimplicit-fallthrough. Looking at the code, it seems like the fallthrough is indeed intended here, so the comments should be appropriate. Message-Id: <20200630055953.9309-1-thuth@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'disas')
-rw-r--r--disas/sh4.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/disas/sh4.c b/disas/sh4.c
index 55ef865a36..dcdbdf26d8 100644
--- a/disas/sh4.c
+++ b/disas/sh4.c
@@ -1963,6 +1963,7 @@ print_insn_sh (bfd_vma memaddr, struct disassemble_info *info)
fprintf_fn (stream, "xd%d", rn & ~1);
break;
}
+ /* fallthrough */
case D_REG_N:
fprintf_fn (stream, "dr%d", rn);
break;
@@ -1972,6 +1973,7 @@ print_insn_sh (bfd_vma memaddr, struct disassemble_info *info)
fprintf_fn (stream, "xd%d", rm & ~1);
break;
}
+ /* fallthrough */
case D_REG_M:
fprintf_fn (stream, "dr%d", rm);
break;