From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1851) id AB2C3389245A; Thu, 13 Jan 2022 09:35:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AB2C3389245A MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Martin Liska To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-6540] epiphany: fix -Wimplicit-fallthrough warnings in epiphany.c. X-Act-Checkin: gcc X-Git-Author: Martin Liska X-Git-Refname: refs/heads/master X-Git-Oldrev: ed8b9b4f5b4a42491fb6a74fc57a64fafcc51d20 X-Git-Newrev: ff496134a99de876cde331a3c12b3335c197bf52 Message-Id: <20220113093533.AB2C3389245A@sourceware.org> Date: Thu, 13 Jan 2022 09:35:33 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Jan 2022 09:35:33 -0000 https://gcc.gnu.org/g:ff496134a99de876cde331a3c12b3335c197bf52 commit r12-6540-gff496134a99de876cde331a3c12b3335c197bf52 Author: Martin Liska 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: