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: 191 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6a10:b5d6:b0:2b9:3548:2db5 with SMTP id v22csp2378907pxt; Tue, 26 Jul 2022 10:00:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vhdsNEKuAyLa/CHjbP/jRuHAvyXhEEVUN70MFjNWvcaf23RuolyavolUCW+i0ZxV5CyiXH X-Received: by 2002:a17:907:7f1d:b0:72b:4502:1c4f with SMTP id qf29-20020a1709077f1d00b0072b45021c4fmr14656606ejc.368.1658854818894; Tue, 26 Jul 2022 10:00:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658854818; cv=none; d=google.com; s=arc-20160816; b=vgrdF/3d+ZlXh48Q3Mkb0ltd4j/k7+yWRPiRSsNyastoSqaNcCvwn1rCg8ECPbx8jt u1TmVhD3ObZxxYAxo2VwdOWdLmzQ+dGTvyhqpg6jD6InHBAlLYuhc1oYuZLu800quqNt iJMu67bdBOFd6eityLmvgqAjQs3crmyw1t27gRmwZwZDJlI4ZhDfOPLYk/bUKgv585aw v/Ys+t1xXl+Ybg2gjJlH/4LK4ogfNirBw6FyVcrl8qYqJrSxeGEKmsxw06H8A/k2SXfI eIHRpDyAktVNBQD+/cRMImfkxDLqheqCKpu29DD8pBm0jTB6jHSnyGvi/jg8mBIMPPC2 Iapw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version:user-agent :message-id:subject:to:from:date:dkim-signature:dmarc-filter :delivered-to; bh=4Z/l7E0nzFqtSaEBrBLL+GkX+SsEx18uB0smbkIYkwI=; b=fcL8e4Efp8QbCKjFiLFGCp1wS4nVs8fXasGpHywBrdn6wBLxqhEBoVyUFLYXMXqtOn VcgcuqTRbV2OVYX+Obg/fl8199DlX79w1fn53zWYF9H2Eqjzr4mCXVZdRY2Qry0eCufJ XGtPCFwhTnFv4KjLS/abS/GJUD3zLDZkKTkcMCqpswUfZXX1KryNxrL9gKs1cRkJH/hu ySpSY6ZvjLem2qRNn2pczzUJDMSsLobNxgS769DxEZCgpyYR6f9ODiyjMGdAHcusLJfb v4LAvgsV536qCyJEnn6Jh0v3QCA/yNbRSglORH8J3p6mzdSHikS3KFxmbA7H31e2KVDZ /zsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@embecosm.com header.s=google header.b=cSaebP55; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id m9-20020a509309000000b0043a239ef410si3969456eda.408.2022.07.26.10.00.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Jul 2022 10:00:18 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=fail header.i=@embecosm.com header.s=google header.b=cSaebP55; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 25166385741C for ; Tue, 26 Jul 2022 17:00:08 +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-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+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1739435350800609852?= X-GMAIL-MSGID: =?utf-8?q?1739435350800609852?= 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"