From: Mike Frysinger Date: Thu, 21 Dec 2023 06:38:33 +0000 (-0500) Subject: sim: rx: fix -Wimplicit-fallthrough warnings X-Git-Tag: binutils-2_42~445 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=85433eb33103ed57ed067c5bd471262e0c8c8292;p=thirdparty%2Fbinutils-gdb.git sim: rx: fix -Wimplicit-fallthrough warnings Replace some fall through comments with the attribute. --- diff --git a/sim/rx/rx.c b/sim/rx/rx.c index 7c02a336bd5..f4f785b938b 100644 --- a/sim/rx/rx.c +++ b/sim/rx/rx.c @@ -411,7 +411,7 @@ get_op (const RX_Opcode_Decoded *rd, int i) case RX_Operand_Predec: /* [-Rn] */ put_reg (o->reg, get_reg (o->reg) - size2bytes[o->size]); - /* fall through */ + ATTRIBUTE_FALLTHROUGH; case RX_Operand_Postinc: /* [Rn+] */ case RX_Operand_Zero_Indirect: /* [Rn + 0] */ case RX_Operand_Indirect: /* [Rn + addend] */ @@ -583,7 +583,7 @@ put_op (const RX_Opcode_Decoded *rd, int i, int v) case RX_Operand_Predec: /* [-Rn] */ put_reg (o->reg, get_reg (o->reg) - size2bytes[o->size]); - /* fall through */ + ATTRIBUTE_FALLTHROUGH; case RX_Operand_Postinc: /* [Rn+] */ case RX_Operand_Zero_Indirect: /* [Rn + 0] */ case RX_Operand_Indirect: /* [Rn + addend] */