From patchwork Tue Jul 26 16:59:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Maciej W. Rozycki" X-Patchwork-Id: 56343 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 C7ED63857356 for ; Tue, 26 Jul 2022 17:00:00 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by sourceware.org (Postfix) with ESMTPS id 37F923858D28 for ; Tue, 26 Jul 2022 16:59:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 37F923858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embecosm.com Received: by mail-lf1-x12a.google.com with SMTP id b16so11035600lfb.7 for ; Tue, 26 Jul 2022 09:59:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=date:from:to:cc:subject:message-id:user-agent:mime-version; bh=4Z/l7E0nzFqtSaEBrBLL+GkX+SsEx18uB0smbkIYkwI=; b=cSaebP55QOlcERGxe2C0fbIab4t/2Scl8nnQv2LHqKfLCPf04I92FDrW0gv0B8DKFn K12VSmrqmeUmFbTYwOVgl2pAWGE6vJ2TlSa1ejOeBHfK+UMyD/y02qyPQGIWiNFnMY5w i/42JFAPqWuz7QPvP8J2CP09UQhAaprCJyyfTjYkM6wfKxLaB4d6YTaZ6uy99EDu6+UG dAQJw829pZlxHEcs+b172mZUwEJendyWg2kFp7f+auuhNXAuftoANvsjVouQt3VOQtyo h0px7QndFhOQmEmbabQMkwB6DlXI2t0DLD5j8hn4jgsrSs8da+MfVsMnJpPIICVTUCsi Tdgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:user-agent :mime-version; bh=4Z/l7E0nzFqtSaEBrBLL+GkX+SsEx18uB0smbkIYkwI=; b=w4v3HP6wsWbsgnRoPjYKi2bvt5uDqNv8PzpNpzQS8SJ2BHYsfSG1AluOSIg90uYXKo HJ7D/f6reW0nChgawXAMnGRUswh3eSkaf5EWgW/urRmJwSlzkHj9GolIwllHYEg0Xgv7 +hN/FjbtIqi6Fn0VM6VDOpMfh9XurgS6BPyD/yeAqdrOyoz37RMt9hgpTJicYHOVWvr6 rcgNhGVhQfDK6nt93nsdp8UNRN1CfJqr5cRCRSo9fBcboESAMuVHA6efGrjfqyiuE9cE RlM2nGsNcOXtdYj0t1kj4kjQrs5WqT17FHr4LgP8opV2kwYGUEooTGqBfbMJV2VMEylG o9og== X-Gm-Message-State: AJIora9dvZ89asYJFkI7tRn/q/sBJ5ZN+A45u7p0GMXr2Ww36fG2EWzy lqxh+ESuLF852HPDWD6sl2GjnFeW3LAkFqqe X-Google-Smtp-Source: AGRyM1tzsVhex0CtWReQN68utFzsc0kfqTW4QVHJ2+5sAfKYz1hpy8/pt4DKVHNYBsa30cyDECZw7g== X-Received: by 2002:ac2:5087:0:b0:48a:94df:2f3e with SMTP id f7-20020ac25087000000b0048a94df2f3emr3433643lfm.199.1658854782553; Tue, 26 Jul 2022 09:59:42 -0700 (PDT) Received: from [192.168.219.3] ([78.8.192.131]) by smtp.gmail.com with ESMTPSA id r9-20020a2e94c9000000b0025de60d6c42sm3317952ljh.21.2022.07.26.09.59.41 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Jul 2022 09:59:41 -0700 (PDT) Date: Tue, 26 Jul 2022 17:59:32 +0100 (BST) From: "Maciej W. Rozycki" To: gcc-patches@gcc.gnu.org Subject: [PATCH] RISC-V: Remove duplicate backslashes from `stack_protect_set_' Message-ID: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kito Cheng , Andrew Waterman Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" Remove redundant duplicate backslash characters from \t sequences in the output pattern of the `stack_protect_set_' RTL insn. gcc/ * gcc/config/riscv/riscv.md (stack_protect_set_): Remove duplicate backslashes. --- Hi, I don't know why it doesn't matter whether the backslash is duplicated here or not, but output produced in insn-output.cc is the same either way, with lone \t sequences present, so remove these extraneous backslashes for consistency. Even this very output pattern does not have this duplication present in the final LI instruction. OK to apply? Maciej --- gcc/config/riscv/riscv.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) gcc-riscv-stack-protect-tab.diff Index: gcc/gcc/config/riscv/riscv.md =================================================================== --- gcc.orig/gcc/config/riscv/riscv.md +++ gcc/gcc/config/riscv/riscv.md @@ -2851,7 +2851,7 @@ UNSPEC_SSP_SET)) (set (match_scratch:GPR 2 "=&r") (const_int 0))] "" - "\\t%2, %1\;\\t%2, %0\;li\t%2, 0" + "\t%2, %1\;\t%2, %0\;li\t%2, 0" [(set_attr "length" "12")]) (define_expand "stack_protect_test"