From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id oEWuIFMXUWNYsA4AWB0awg (envelope-from ) for ; Thu, 20 Oct 2022 05:39:31 -0400 Received: by simark.ca (Postfix, from userid 112) id 825331E112; Thu, 20 Oct 2022 05:39:31 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=jTTKmQy8; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 322671E0D5 for ; Thu, 20 Oct 2022 05:39:31 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8D01D381FE79 for ; Thu, 20 Oct 2022 09:38:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8D01D381FE79 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666258702; bh=zCoLZHM+eaf3yGR6AIyLcxMzILJAIglng1oAdADa6hQ=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=jTTKmQy8f7ZZPVvMBSlhE7vUrpczD3zC7DYwdBrqWQGA3+vWJ9vGH9znmZ7s0S79R C9fL7Snyhf4xsH8/cPgUoB1KwMIO0auRoG01kxKnAQ3W8cSGdELNOiyD3XbM3o8JgD XpkCRsHqxaSRFtvPCp3vki91JO+aQnljacb6xc5E= Received: from mail-sender-0.a4lg.com (mail-sender-0.a4lg.com [IPv6:2401:2500:203:30b:4000:6bfe:4757:0]) by sourceware.org (Postfix) with ESMTPS id 9FB49395A060 for ; Thu, 20 Oct 2022 09:38:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9FB49395A060 Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail-sender-0.a4lg.com (Postfix) with ESMTPSA id 015EE300089; Thu, 20 Oct 2022 09:37:58 +0000 (UTC) To: Tsukasa OI , Andrew Burgess , Mike Frysinger , Nick Clifton Subject: [PATCH 29/40] sim/ppc: Fix indentation on generated code Date: Thu, 20 Oct 2022 09:32:34 +0000 Message-Id: <04f72f880579950f6196da72073a3698582fda0b.1666258361.git.research_trasio@irq.a4lg.com> In-Reply-To: References: Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Tsukasa OI via Gdb-patches Reply-To: Tsukasa OI Cc: gdb-patches@sourceware.org Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" Clang generates a warning if there is a block statement and another adjacent statement with a misleading indent ("-Wmisleading-indentation"). On the default configuration, it causes a build failure (unless "--disable-werror" is specified). The cause of this warning, $(builddir)/sim/ppc/semantics.c is generated by $(srcdir)/sim/ppc/igen.c and this commit fixes generating misleading indentation by removing two spaces. --- sim/ppc/igen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim/ppc/igen.c b/sim/ppc/igen.c index 27b48638276..786ea540d57 100644 --- a/sim/ppc/igen.c +++ b/sim/ppc/igen.c @@ -233,7 +233,7 @@ gen_semantics_c(insn_table *table, lf_printf(file, " option_mpc860c0 = 0;\n"); lf_printf(file, " if (tree_find_property(root, \"/options/mpc860c0\"))\n"); lf_printf(file, " option_mpc860c0 = tree_find_integer_property(root, \"/options/mpc860c0\");\n"); - lf_printf(file, " option_mpc860c0 *= 4; /* convert word count to byte count */\n"); + lf_printf(file, " option_mpc860c0 *= 4; /* convert word count to byte count */\n"); lf_printf(file, "}\n"); lf_printf(file, "\n"); if (generate_expanded_instructions) -- 2.34.1