From: Mike Frysinger Date: Thu, 21 Dec 2023 06:33:32 +0000 (-0500) Subject: sim: m68hc11: fix -Wimplicit-fallthrough warnings X-Git-Tag: binutils-2_42~452 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=452bfb00b5f2f48faef0bdca704274da38272fcc;p=thirdparty%2Fbinutils-gdb.git sim: m68hc11: fix -Wimplicit-fallthrough warnings Seems like these register operations intended on falling thru. --- diff --git a/sim/m68hc11/dv-m68hc11sio.c b/sim/m68hc11/dv-m68hc11sio.c index d5ecbe4f822..03b44613c18 100644 --- a/sim/m68hc11/dv-m68hc11sio.c +++ b/sim/m68hc11/dv-m68hc11sio.c @@ -523,6 +523,7 @@ m68hc11sio_io_read_buffer (struct hw *me, case M6811_SCSR: controller->rx_clear_scsr = m68hc11_cpu->ios[M6811_SCSR] & (M6811_RDRF | M6811_IDLE | M6811_OR | M6811_NF | M6811_FE); + ATTRIBUTE_FALLTHROUGH; case M6811_BAUD: case M6811_SCCR1: diff --git a/sim/m68hc11/dv-m68hc11spi.c b/sim/m68hc11/dv-m68hc11spi.c index e552fd5de9a..ac44e6ed7e2 100644 --- a/sim/m68hc11/dv-m68hc11spi.c +++ b/sim/m68hc11/dv-m68hc11spi.c @@ -405,6 +405,7 @@ m68hc11spi_io_read_buffer (struct hw *me, case M6811_SPSR: controller->rx_clear_scsr = m68hc11_cpu->ios[M6811_SCSR] & (M6811_SPIF | M6811_WCOL | M6811_MODF); + ATTRIBUTE_FALLTHROUGH; case M6811_SPCR: val = m68hc11_cpu->ios[base];