diff options
author | Mike Frysinger <vapier@gentoo.org> | 2023-12-21 01:38:33 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2023-12-21 01:59:23 -0500 |
commit | 85433eb33103ed57ed067c5bd471262e0c8c8292 (patch) | |
tree | 5e4e2b0bf0d6d7821eb0f830cb08be32b8f934c0 | |
parent | e8aaac5fe648cff36f197bafd66c7f38475aae43 (diff) | |
download | fsf-binutils-gdb-85433eb33103ed57ed067c5bd471262e0c8c8292.zip fsf-binutils-gdb-85433eb33103ed57ed067c5bd471262e0c8c8292.tar.gz fsf-binutils-gdb-85433eb33103ed57ed067c5bd471262e0c8c8292.tar.bz2 |
sim: rx: fix -Wimplicit-fallthrough warnings
Replace some fall through comments with the attribute.
-rw-r--r-- | sim/rx/rx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/rx/rx.c b/sim/rx/rx.c index 7c02a33..f4f785b 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] */ |