From patchwork Tue Dec 5 13:06: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: 81412 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 BA2AA385800F for ; Tue, 5 Dec 2023 13:06:47 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id D918A3858032 for ; Tue, 5 Dec 2023 13:06:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D918A3858032 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 D918A3858032 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=1701781595; cv=none; b=gUz4mK90sFDVfFfQ6UUZel0emocrdTjwyoYRBg/dxOrC+ffvWd4rlh+iDuEI88CMos4WHnFEtXx4zdbxEFC4mfvbsGycUZnPn7S7hBMuoihEvITtHlIAViTunY9J1pxENMKMGGq1R6wcN/ss9GZ/A0TU7c4hFJR12/eK9ARgjZE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701781595; c=relaxed/simple; bh=73WJtnWmfQW0+s42c4NR6sxS7MrD/WQ9eGkAupBKdxI=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=Nxoz/ImwLGZdTp58AKzEUAgt7gntOrnxgfJrxPWzKtJs1C2oDa2nT4Bl1uMLTQilZyuNPWwAFwVK/vnmfNAUTE7YReUSU71iDXSfv90L5soHbRjoGA0XiXVQEWRlA45D79jHsIPvXKqQVrswYLGlwBt+T02TK20QVP6pMs3Q4js= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by smtp.gentoo.org (Postfix, from userid 559) id 58932335D45; Tue, 5 Dec 2023 13:06:27 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH/committed] sim: sh: trim trailing whitespace in generated code Date: Tue, 5 Dec 2023 06:06:25 -0700 Message-ID: <20231205130625.5921-1-vapier@gentoo.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Spam-Status: No, score=-11.1 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 No functional change here, but makes it a little easier to read the generated code when editors aren't highlighting all the spurious trailing whitespace on lines. --- sim/sh/gencode.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/sim/sh/gencode.c b/sim/sh/gencode.c index 5eb7caf25893..fa4f9886cf6d 100644 --- a/sim/sh/gencode.c +++ b/sim/sh/gencode.c @@ -2837,7 +2837,7 @@ gensim_caselist (op *p) const char *s = p->code; printf (" /* %s %s */\n", p->name, p->code); - printf (" case %d: \n", p->index); + printf (" case %d:\n", p->index); printf (" {\n"); while (*s) @@ -2881,8 +2881,8 @@ gensim_caselist (op *p) case 'x': if (s[1] == 'y') /* xy */ { - printf (" int n = (iword & 3) ? \n"); - printf (" ((iword >> 9) & 1) + 4 : \n"); + printf (" int n = (iword & 3) ?\n"); + printf (" ((iword >> 9) & 1) + 4 :\n"); printf (" REG_xy ((iword >> 8) & 3);\n"); } else @@ -2893,8 +2893,8 @@ gensim_caselist (op *p) case 'y': if (s[1] == 'x') /* yx */ { - printf (" int n = (iword & 0xc) ? \n"); - printf (" ((iword >> 8) & 1) + 6 : \n"); + printf (" int n = (iword & 0xc) ?\n"); + printf (" ((iword >> 8) & 1) + 6 :\n"); printf (" REG_yx ((iword >> 8) & 3);\n"); } else @@ -2913,8 +2913,8 @@ gensim_caselist (op *p) case 'X': if (s[1] == 'Y') /* XY */ { - printf (" int m = (iword & 3) ? \n"); - printf (" ((iword >> 7) & 1) + 8 : \n"); + printf (" int m = (iword & 3) ?\n"); + printf (" ((iword >> 7) & 1) + 8 :\n"); printf (" DSP_xy ((iword >> 6) & 3);\n"); } else @@ -2924,8 +2924,8 @@ gensim_caselist (op *p) case 'a': if (s[1] == 'x') /* ax */ { - printf (" int m = (iword & 3) ? \n"); - printf (" 7 - ((iword >> 6) & 2) : \n"); + printf (" int m = (iword & 3) ?\n"); + printf (" 7 - ((iword >> 6) & 2) :\n"); printf (" DSP_ax ((iword >> 6) & 3);\n"); } else @@ -2935,8 +2935,8 @@ gensim_caselist (op *p) case 'Y': if (s[1] == 'X') /* YX */ { - printf (" int m = (iword & 0xc) ? \n"); - printf (" ((iword >> 6) & 1) + 10 : \n"); + printf (" int m = (iword & 0xc) ?\n"); + printf (" ((iword >> 6) & 1) + 10 :\n"); printf (" DSP_yx ((iword >> 6) & 3);\n"); } else @@ -2946,8 +2946,8 @@ gensim_caselist (op *p) case 'A': if (s[1] == 'Y') /* AY */ { - printf (" int m = (iword & 0xc) ? \n"); - printf (" 7 - ((iword >> 5) & 2) : \n"); + printf (" int m = (iword & 0xc) ?\n"); + printf (" 7 - ((iword >> 5) & 2) :\n"); printf (" DSP_ay ((iword >> 6) & 3);\n"); } else @@ -3270,7 +3270,7 @@ ppi_gensim (void) const char *s = p->code; printf (" /* %s %s */\n", p->name, p->code); - printf (" case %d: \n", p->index); + printf (" case %d:\n", p->index); printf (" {\n"); for (shift = 16; *s; ) @@ -3297,7 +3297,7 @@ ppi_gensim (void) printf (" if ((((iword >> 8) ^ DSR) & 1) == 0)\n"); printf ("\treturn;\n"); printf (" }\n"); - printf (" case %d: \n", p->index + 1); + printf (" case %d:\n", p->index + 1); printf (" {\n"); cond = 1; case '0':