public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Martin Liska <marxin@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-6540] epiphany: fix -Wimplicit-fallthrough warnings in epiphany.c. Date: Thu, 13 Jan 2022 09:35:33 +0000 (GMT) [thread overview] Message-ID: <20220113093533.AB2C3389245A@sourceware.org> (raw) https://gcc.gnu.org/g:ff496134a99de876cde331a3c12b3335c197bf52 commit r12-6540-gff496134a99de876cde331a3c12b3335c197bf52 Author: Martin Liska <mliska@suse.cz> Date: Wed Jan 12 10:49:54 2022 +0100 epiphany: fix -Wimplicit-fallthrough warnings in epiphany.c. gcc/ChangeLog: * config/epiphany/epiphany.c (epiphany_mode_priority): Use gcc_unreachable for not handled cases. Diff: --- gcc/config/epiphany/epiphany.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/config/epiphany/epiphany.c b/gcc/config/epiphany/epiphany.c index e19e61a4dde..c9c321560de 100644 --- a/gcc/config/epiphany/epiphany.c +++ b/gcc/config/epiphany/epiphany.c @@ -2371,6 +2371,7 @@ epiphany_mode_priority (int entity, int priority) case 2: return (epiphany_normal_fp_rounding == FP_MODE_ROUND_NEAREST ? FP_MODE_ROUND_TRUNC : FP_MODE_ROUND_NEAREST); case 3: return FP_MODE_CALLER; + default: gcc_unreachable (); } case FP_MODE_ROUND_NEAREST: case FP_MODE_CALLER: @@ -2380,6 +2381,7 @@ epiphany_mode_priority (int entity, int priority) case 1: return FP_MODE_ROUND_TRUNC; case 2: return FP_MODE_INT; case 3: return FP_MODE_CALLER; + default: gcc_unreachable (); } case FP_MODE_ROUND_TRUNC: switch (priority) @@ -2388,6 +2390,7 @@ epiphany_mode_priority (int entity, int priority) case 1: return FP_MODE_ROUND_NEAREST; case 2: return FP_MODE_INT; case 3: return FP_MODE_CALLER; + default: gcc_unreachable (); } case FP_MODE_ROUND_UNKNOWN: case FP_MODE_NONE:
reply other threads:[~2022-01-13 9:35 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220113093533.AB2C3389245A@sourceware.org \ --to=marxin@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).