From: Mike Frysinger Date: Thu, 21 Dec 2023 06:35:14 +0000 (-0500) Subject: sim: or1k: fix -Wimplicit-fallthrough warnings X-Git-Tag: binutils-2_42~449 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77b3c4f66647058625d92b866a7ef689ee75557e;p=thirdparty%2Fbinutils-gdb.git sim: or1k: fix -Wimplicit-fallthrough warnings Replace some fall through comments with the attribute. --- diff --git a/sim/or1k/or1k.c b/sim/or1k/or1k.c index 73ddeac87ad..b32e9b1e640 100644 --- a/sim/or1k/or1k.c +++ b/sim/or1k/or1k.c @@ -270,7 +270,7 @@ or1k32bf_nop (sim_cpu *current_cpu, USI uimm16) case NOP_EXIT: sim_io_printf (CPU_STATE (current_cpu), "exit(%d)\n", GET_H_GPR (3)); - /* fall through */ + ATTRIBUTE_FALLTHROUGH; case NOP_EXIT_SILENT: sim_engine_halt (sd, current_cpu, NULL, CPU_PC_GET (current_cpu), sim_exited, GET_H_GPR (3));