diff options
author | Mike Frysinger <vapier@gentoo.org> | 2023-12-21 01:39:26 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2023-12-21 01:59:23 -0500 |
commit | 849bdf4ead7a19ebde74fa4caec8643bf71da3e3 (patch) | |
tree | 1b811d0dc8536bc7897246af7be1547c5cd35191 | |
parent | 85433eb33103ed57ed067c5bd471262e0c8c8292 (diff) | |
download | gdb-849bdf4ead7a19ebde74fa4caec8643bf71da3e3.zip gdb-849bdf4ead7a19ebde74fa4caec8643bf71da3e3.tar.gz gdb-849bdf4ead7a19ebde74fa4caec8643bf71da3e3.tar.bz2 |
sim: sh: fix -Wimplicit-fallthrough warnings
These generate conditional insns where it tests, then fallsthru.
-rw-r--r-- | sim/sh/gencode.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sim/sh/gencode.c b/sim/sh/gencode.c index 1835cf9..9683dc4 100644 --- a/sim/sh/gencode.c +++ b/sim/sh/gencode.c @@ -3296,6 +3296,7 @@ ppi_gensim (void) case 'c': printf (" if ((((iword >> 8) ^ DSR) & 1) == 0)\n"); printf ("\treturn;\n"); + printf (" ATTRIBUTE_FALLTHROUGH;\n"); printf (" }\n"); printf (" case %d:\n", p->index + 1); printf (" {\n"); |