From patchwork Thu Dec 21 07:01:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 82653 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 A1285388300D for ; Thu, 21 Dec 2023 07:02:43 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id A1C0B38618F5 for ; Thu, 21 Dec 2023 07:02:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A1C0B38618F5 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A1C0B38618F5 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:470:ea4a:1:5054:ff:fec7:86e4 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703142128; cv=none; b=glwOJQRkZdjjN9WEf2RphMYRDbKaxYSmMo7KK7jc4lEynJxA/4iAHr6ah94hZTrYsLxKE4Cj7tvGx1Bo0iepqQMb7QbmoEjgweZqlFNHBoQRZQEcPqVRX5fhKCqLe5JXqdW60rJMi8pujtpLTFyjzXqWE9rzx704GEJxf5wfjuU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703142128; c=relaxed/simple; bh=CwTN45UvZQTzEeuq4i+gRKC9uI9NBXxK3awHsIFc130=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=cZdM733tw/8+QBdxU+69iQf8oCPhXJI3GkMTf+O7C4gvTlN1DQMWvPyo3GmFnFX4JVFiCNFRyM46oRBWq2LcwuOOF0m9QR2YuHhS5+cx6Zi1eoP1QWlC9pH0//O1ikhIvlb6TNu0mI3is3ZSANlVzVy8WBo47lfTNLD91zEUkwA= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by smtp.gentoo.org (Postfix, from userid 559) id 5203E342F64; Thu, 21 Dec 2023 07:02:06 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH/committed 19/20] sim: sh: fix -Wimplicit-fallthrough warnings Date: Thu, 21 Dec 2023 02:01:26 -0500 Message-ID: <20231221070127.19142-19-vapier@gentoo.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231221070127.19142-1-vapier@gentoo.org> References: <20231221070127.19142-1-vapier@gentoo.org> MIME-Version: 1.0 X-Spam-Status: No, score=-11.2 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org These generate conditional insns where it tests, then fallsthru. --- sim/sh/gencode.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sim/sh/gencode.c b/sim/sh/gencode.c index 1835cf92ff3f..9683dc46b86a 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");