Skip to content
Snippets Groups Projects
Commit ccb23709 authored by Thomas Huth's avatar Thomas Huth
Browse files

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: default avatarRichard Henderson <richard.henderson@linaro.org>
Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
parent 7aa12aa2
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment