From patchwork Thu Dec 21 07:01:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 82638 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 BC4613865C30 for ; Thu, 21 Dec 2023 07:01:46 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id 8D6F63858030 for ; Thu, 21 Dec 2023 07:01:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8D6F63858030 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 8D6F63858030 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=140.211.166.183 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703142093; cv=none; b=QA3G9TrAxxzE78wFmYV8/Lj37TgUL63CU6Qxu2T4XZiZTiviFV1+H/3TUM7fhSb5aaR6itk+L4xu8Z4t2MjzZzn/Bf1FXKKrxmcxsvDg5oekc9NZ8rfZM3uHm9IlupqQ0kOlwZlTv5/UQ8Jc0A3KTRq+gI5P/k1FyPK9nQkxf/s= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703142093; c=relaxed/simple; bh=yD41uSxRdaEeRvsG7nGRyodiPrGiFFl8fU7tKGKmR8k=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=NMmKk/mwqUWuFtqPhgZyTqoepT3vVCmgM63dyngzXPxJmwUPdYspD1wQLn+29viQArfr3+CKAtYtxx7vXxcUyGmR2Y+DI8i6yq7vdIu5vzU21fxRtXroLIdoTN/jxy64MYqqS/r63u5UKZB8ujrpcDhE5HAv9i9EYsNNY3zGtAE= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by smtp.gentoo.org (Postfix, from userid 559) id 29AC1340BEF; Thu, 21 Dec 2023 07:01:31 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH/committed 02/20] sim: add ATTRIBUTE_FALLTHROUGH for local code Date: Thu, 21 Dec 2023 02:01:09 -0500 Message-ID: <20231221070127.19142-2-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, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, 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 We'll replace various /* fall through */ comments so compilers can actually understand what the code is doing. --- sim/common/defs.h | 3 +++ sim/ppc/defs.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/sim/common/defs.h b/sim/common/defs.h index 0f4062c2031d..01db1804b4cd 100644 --- a/sim/common/defs.h +++ b/sim/common/defs.h @@ -25,6 +25,9 @@ /* Include gnulib's various configure tests. */ #include "gnulib/config.h" +/* This comes from gnulib. Export it until ansidecl.h handles it. */ +#define ATTRIBUTE_FALLTHROUGH _GL_ATTRIBUTE_FALLTHROUGH + /* Reset macros that our config.h will provide. */ #undef PACKAGE #undef PACKAGE_BUGREPORT diff --git a/sim/ppc/defs.h b/sim/ppc/defs.h index 276063d4b74e..ab7a142b8994 100644 --- a/sim/ppc/defs.h +++ b/sim/ppc/defs.h @@ -23,6 +23,9 @@ /* Include gnulib's various configure tests. */ #include "gnulib/config.h" +/* This comes from gnulib. Export it until ansidecl.h handles it. */ +#define ATTRIBUTE_FALLTHROUGH _GL_ATTRIBUTE_FALLTHROUGH + /* Reset macros that our config.h will provide. */ #undef PACKAGE #undef PACKAGE_BUGREPORT