From patchwork Wed Jan 12 09:56:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Martin_Li=C5=A1ka?= X-Patchwork-Id: 49910 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BD4FD38B3439 for ; Wed, 12 Jan 2022 09:56:49 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by sourceware.org (Postfix) with ESMTPS id 326BA3858416 for ; Wed, 12 Jan 2022 09:56:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 326BA3858416 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.cz Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 5D4401F3C4; Wed, 12 Jan 2022 09:56:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1641981392; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pDiZzWYuj38yOy6UFTuAQLbyUCz1QCDJfU9JGxA6rv8=; b=JDaANOIOeA3cp+RATgyrG9xlVDRAz4ajbqriAtt+tA/p/QrLKfohx1WWiqO7keIm9XG6fb iPq+hfG8tkEzVWeriLWvfsTq3SjZ9nphAuS+omVuuUJyJYFyLNRqUKoQ+TrHSYtSX5wHPU T2t0SCqX2uagW53umrwLtVeKQwqrPTg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1641981392; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pDiZzWYuj38yOy6UFTuAQLbyUCz1QCDJfU9JGxA6rv8=; b=9XAy7QR9hOd6Fq7ykqtN8Fv7pD04C6qa1DiZ8tUss8qxUbKDe9S+N/QZBWaXT/RSUGSwUT Wy4jgEf9kS4BzoBA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 48F3613B42; Wed, 12 Jan 2022 09:56:32 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id LK/BENCl3mGhWQAAMHmgww (envelope-from ); Wed, 12 Jan 2022 09:56:32 +0000 Message-ID: <03380edf-3c4f-4d2c-c59a-4e967b7cf9ee@suse.cz> Date: Wed, 12 Jan 2022 10:56:31 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.1 From: =?utf-8?q?Martin_Li=C5=A1ka?= Subject: [PATCH] epiphany: fix -Wimplicit-fallthrough warnings in epiphany.c. To: gcc-patches@gcc.gnu.org Content-Language: en-US X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: gnu@amylaar.uk Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" This is RFC. Cheers, Martin gcc/ChangeLog: * config/epiphany/epiphany.c (epiphany_mode_priority): Use gcc_unreachable for not handled cases. --- 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 a2743436f38..88283419dc1 100644 --- a/gcc/config/epiphany/epiphany.c +++ b/gcc/config/epiphany/epiphany.c @@ -2369,6 +2369,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: @@ -2378,6 +2379,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) @@ -2386,6 +2388,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: