From patchwork Thu Dec 21 07:01:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 82654 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 B464F3881D33 for ; Thu, 21 Dec 2023 07:02:52 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id 9334D384DEFC for ; Thu, 21 Dec 2023 07:02:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9334D384DEFC 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 9334D384DEFC 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=1703142127; cv=none; b=bhSOwNo80lhWIKwsKRi3B81YWkeBXz4QMuFIvhk9cbLm1rDVmyqZwyCHV0QAiiHBE23BP7yUXHeUiudjLxWJe2gzrRmHWqqyb7ycrkJprXOZM7JqWuGeMP5xXGZ0evCuokEi4P2ttl1NbShj/3xpzlh8SI0n0OqhMETOp9cSeyA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703142127; c=relaxed/simple; bh=d2DdgsicnYecSNgHXwTJn9PTapChveihmtSm4KOv0EY=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=QxvRBRXlgSHlCO7rmI3ChhYVLw5CpZzDt0DD4ryvNKfrvoikEKK+v86S3jjG+RwATlwT/r+I4E446plfRAz6+vEYjvR/l++JVvj71i3UAhN9BrRzlfzmn9Q3TM3DpIi60/mvmfSWNvqVSXR4Ldn9iL2+3LZ+xrdtMIX7cCoG0cY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by smtp.gentoo.org (Postfix, from userid 559) id 43164340C42; Thu, 21 Dec 2023 07:02:04 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH/committed 18/20] sim: rx: fix -Wimplicit-fallthrough warnings Date: Thu, 21 Dec 2023 02:01:25 -0500 Message-ID: <20231221070127.19142-18-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 Replace some fall through comments with the attribute. --- sim/rx/rx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sim/rx/rx.c b/sim/rx/rx.c index 7c02a336bd59..f4f785b938b5 100644 --- a/sim/rx/rx.c +++ b/sim/rx/rx.c @@ -411,7 +411,7 @@ get_op (const RX_Opcode_Decoded *rd, int i) case RX_Operand_Predec: /* [-Rn] */ put_reg (o->reg, get_reg (o->reg) - size2bytes[o->size]); - /* fall through */ + ATTRIBUTE_FALLTHROUGH; case RX_Operand_Postinc: /* [Rn+] */ case RX_Operand_Zero_Indirect: /* [Rn + 0] */ case RX_Operand_Indirect: /* [Rn + addend] */ @@ -583,7 +583,7 @@ put_op (const RX_Opcode_Decoded *rd, int i, int v) case RX_Operand_Predec: /* [-Rn] */ put_reg (o->reg, get_reg (o->reg) - size2bytes[o->size]); - /* fall through */ + ATTRIBUTE_FALLTHROUGH; case RX_Operand_Postinc: /* [Rn+] */ case RX_Operand_Zero_Indirect: /* [Rn + 0] */ case RX_Operand_Indirect: /* [Rn + addend] */