From: Mike Frysinger Date: Thu, 21 Dec 2023 06:34:13 +0000 (-0500) Subject: sim: mcore: fix Wimplicit-fallthrough warnings X-Git-Tag: binutils-2_42~451 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=80200ef6b49d0c879de6435519aacda9d025347c;p=thirdparty%2Fbinutils-gdb.git sim: mcore: fix Wimplicit-fallthrough warnings Seems like these decodes were intended to fallthru. --- diff --git a/sim/mcore/interp.c b/sim/mcore/interp.c index b0c2cc2b317..d24af0d9472 100644 --- a/sim/mcore/interp.c +++ b/sim/mcore/interp.c @@ -1105,6 +1105,7 @@ step_once (SIM_DESC sd, SIM_CPU *cpu) fprintf (stderr, "func call: r2 = %x r3 = %x r4 = %x r5 = %x r6 = %x r7 = %x\n", gr[2], gr[3], gr[4], gr[5], gr[6], gr[7]); + ATTRIBUTE_FALLTHROUGH; case 0x70: /* jmpi */ pc = rlat ((pc + ((inst & 0xFF) << 2)) & 0xFFFFFFFC); memops++; @@ -1192,6 +1193,7 @@ step_once (SIM_DESC sd, SIM_CPU *cpu) case 0xF8: case 0xF9: case 0xFA: case 0xFB: case 0xFC: case 0xFD: case 0xFE: case 0xFF: /* bsr */ gr[15] = pc; + ATTRIBUTE_FALLTHROUGH; case 0xF0: case 0xF1: case 0xF2: case 0xF3: case 0xF4: case 0xF5: case 0xF6: case 0xF7: /* br */ {