diff options
author | Mike Frysinger <vapier@gentoo.org> | 2023-12-21 01:34:54 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2023-12-21 01:59:23 -0500 |
commit | 28c06ff1a153c546b2816cee582ccad1cac8008e (patch) | |
tree | 9eb8213f42a40be1179eeb69b4ca65772c82fdef /sim/mips/interp.c | |
parent | 80200ef6b49d0c879de6435519aacda9d025347c (diff) | |
download | binutils-28c06ff1a153c546b2816cee582ccad1cac8008e.zip binutils-28c06ff1a153c546b2816cee582ccad1cac8008e.tar.gz binutils-28c06ff1a153c546b2816cee582ccad1cac8008e.tar.bz2 |
sim: mips: fix -Wimplicit-fallthrough warnings
Seems like these cases were meant to fallthru.
Diffstat (limited to 'sim/mips/interp.c')
-rw-r--r-- | sim/mips/interp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sim/mips/interp.c b/sim/mips/interp.c index 255807f..708e27f 100644 --- a/sim/mips/interp.c +++ b/sim/mips/interp.c @@ -1247,7 +1247,7 @@ sim_monitor (SIM_DESC sd, if (A0 == 0) /* waitflag == NOWAIT */ V0 = (unsigned_word)-1; } - /* Drop through to case 11 */ + ATTRIBUTE_FALLTHROUGH; case 11: /* char inbyte(void) */ { @@ -1904,6 +1904,7 @@ signal_exception (SIM_DESC sd, } /* else fall through to normal exception processing */ sim_io_eprintf(sd,"ReservedInstruction at PC = 0x%s\n", pr_addr (cia)); + ATTRIBUTE_FALLTHROUGH; } default: @@ -2329,6 +2330,7 @@ decode_coproc (SIM_DESC sd, "Warning: PC 0x%lx:interp.c decode_coproc DEADC0DE\n", (unsigned long)cia); GPR[rt] = 0xDEADC0DE; /* CPR[0,rd] */ + ATTRIBUTE_FALLTHROUGH; /* CPR[0,rd] = GPR[rt]; */ default: if (op == cp0_mfc0 || op == cp0_dmfc0) |