From patchwork Thu Dec 21 07:01:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 82644 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 43DFF386C597 for ; Thu, 21 Dec 2023 07:02:13 +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 65D6D3849792 for ; Thu, 21 Dec 2023 07:01:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 65D6D3849792 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 65D6D3849792 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=1703142117; cv=none; b=YFaa3qXny7US1KB6g+mht6DCGoC0XSbVSaTNPRrBPe847/aUHQS2HBf5PhCMXspHGoz1KkoppbHsGPl3XS9jruhuv0Sq7g8h8S+ArVrKqIetLG343yOb68NK26W/T87uQfba2w7UXZg9dB0f4DSFDYIuviviQq2hjmaQZtfGGCQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703142117; c=relaxed/simple; bh=wxj0BSO7aq0qMdxb8Fef/KUERJl12Q5RwIFzL1gXOcY=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=Ocxjlc7V8ATgyqUhpdd2Z13vuhw8tyrkQNjkSgsxUTjOILfVvMY5TeRzlWDN1DP/1JpsgARKkrhgkLZgZDC6r1lQ1pWZ3ARGY2bMNW8czp3Ek3crnL3QfOldZdkSIOLz6o9z1sqd6vrxXa/6UAX5lpjejJsWKMASuHyfDC/OoDg= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by smtp.gentoo.org (Postfix, from userid 559) id 17073340DE6; Thu, 21 Dec 2023 07:01:56 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH/committed 14/20] sim: or1k: fix -Wimplicit-fallthrough warnings Date: Thu, 21 Dec 2023 02:01:21 -0500 Message-ID: <20231221070127.19142-14-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/or1k/or1k.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim/or1k/or1k.c b/sim/or1k/or1k.c index 73ddeac87ade..b32e9b1e6401 100644 --- a/sim/or1k/or1k.c +++ b/sim/or1k/or1k.c @@ -270,7 +270,7 @@ or1k32bf_nop (sim_cpu *current_cpu, USI uimm16) case NOP_EXIT: sim_io_printf (CPU_STATE (current_cpu), "exit(%d)\n", GET_H_GPR (3)); - /* fall through */ + ATTRIBUTE_FALLTHROUGH; case NOP_EXIT_SILENT: sim_engine_halt (sd, current_cpu, NULL, CPU_PC_GET (current_cpu), sim_exited, GET_H_GPR (3));