aboutsummaryrefslogtreecommitdiff
path: root/sim/or1k
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-12-21 01:35:14 -0500
committerMike Frysinger <vapier@gentoo.org>2023-12-21 01:59:23 -0500
commit77b3c4f66647058625d92b866a7ef689ee75557e (patch)
treec93a511a5fe18f3d2567ea1792483ee03c1bafa1 /sim/or1k
parent28c06ff1a153c546b2816cee582ccad1cac8008e (diff)
downloadgdb-77b3c4f66647058625d92b866a7ef689ee75557e.zip
gdb-77b3c4f66647058625d92b866a7ef689ee75557e.tar.gz
gdb-77b3c4f66647058625d92b866a7ef689ee75557e.tar.bz2
sim: or1k: fix -Wimplicit-fallthrough warnings
Replace some fall through comments with the attribute.
Diffstat (limited to 'sim/or1k')
-rw-r--r--sim/or1k/or1k.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/or1k/or1k.c b/sim/or1k/or1k.c
index 73ddeac..b32e9b1 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));