From patchwork Wed Aug 9 11:46:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiajie Chen X-Patchwork-Id: 133181 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2745766vqr; Wed, 9 Aug 2023 05:00:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHbfSx4XzSOCW6Nzco+W02bLh5Ppd05Pu0E2/kG4G55hrea09DBGrphafOrHzaRDqS8paR/ X-Received: by 2002:a17:906:189:b0:99b:f392:10b0 with SMTP id 9-20020a170906018900b0099bf39210b0mr2109713ejb.37.1691582442475; Wed, 09 Aug 2023 05:00:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691582442; cv=none; d=google.com; s=arc-20160816; b=vrersGNejZAkGNsQgd98+11lkNAp3wt83aJEFxdHae2U99zPIbhTYW/NFCBe1fObhx 4suus7ct/Xq6RlDV/AW4aFMOlqWwk7QJiwcd84wWwPrK6kuh+Di8Vlaw+wnzd2hgNE+Z 7nSUHMSPTghByR50wY98cTho00jLFthzEXPCWX+jS3IqqUoE+hwwShjFPMIXdtF+BEKP yjmyAbWWPUtUmK/Y1lSu1fze8fT80Tm0nTnPzJMlcuZd7ljA91f17knsBYtnX9cpSiFP KFghPO9ge7XfaZaUCv9bIx0GBtjTk71Mt3uYQ/gGjTL8cgTRUQm0pPOMXkpufJoQ3izy MuIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:dmarc-filter:delivered-to :dkim-signature:dkim-filter; bh=Zld2j/f8iNj5b31D1NvssSD5lvA5hDmbNsrUaY/Cr/A=; fh=nBdY3vW/mgwv3C0AxagIWVpWoiWSUh4TsWT+uiKUcFM=; b=FuNEu8C8JYPDhgiwHxk7LVRAZTpDGHl6cN4fZ4E2qYPJzdZ2bvMemZLbQ2CS/0eMjW bI250a3McB6joTK/YOXafuERulkOkkEQ8YzR+hql5FAKJLIeO+7T9INNtcv+bzxS2oU2 XN3bgGCZIbbO/yeIVePP912aAiSDc586Hm5WQznuv68zaneMhV2wehx6IFxPkoMR800g EPOvYak1Kv5X6oPZHf0sp+g4IYOEiNjTlWMgDqMVI/PdsDSScvi7SqZjuXz7LdSjo47Q Yl2d14GqNZzBG5eXBU0nQ5oLboENgjGSZoTKz6kopKY/+CDIWNl0V4/cNtKHSDnsvP85 UjOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=tayaI2k3; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id u17-20020a17090617d100b009659573b4e3si9041898eje.51.2023.08.09.05.00.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 05:00:42 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=tayaI2k3; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B7CFB388301C for ; Wed, 9 Aug 2023 11:58:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B7CFB388301C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1691582311; bh=Zld2j/f8iNj5b31D1NvssSD5lvA5hDmbNsrUaY/Cr/A=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=tayaI2k3jYEWvbXEl9Cl865Wks09TVJQQhIIvRDzpDSMYvBsccuKwr4gavlXblEhL WS04spzvjSpnd7VKmL4twmTwW6sUuLk/PLiU1k5OCi+m89QuiMINSS6z2sTaQwnI+e zeoIwuA0h7qI567NF14hwmNhwLvaRBejVOdvZstE= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from hognose1.porkbun.com (hognose1.porkbun.com [35.82.102.206]) by sourceware.org (Postfix) with ESMTPS id B8CC43857706 for ; Wed, 9 Aug 2023 11:54:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B8CC43857706 Received: from cslab-raptor.. (unknown [166.111.226.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: c@jia.je) by hognose1.porkbun.com (Postfix) with ESMTPSA id 91AD944026; Wed, 9 Aug 2023 11:54:11 +0000 (UTC) To: gcc-patches@gcc.gnu.org Cc: xry111@xry111.site, xuchenghua@loongson.cn, Jiajie Chen Subject: [PATCH v2 13/14] LoongArch: Fix ilp32 detection Date: Wed, 9 Aug 2023 19:46:20 +0800 Message-ID: <20230809115325.3716347-14-c@jia.je> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230809115325.3716347-1-c@jia.je> References: <20230809115325.3716347-1-c@jia.je> MIME-Version: 1.0 X-Spam-Status: No, score=-13.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_PASS, 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: , X-Patchwork-Original-From: Jiajie Chen via Gcc-patches From: Jiajie Chen Reply-To: Jiajie Chen Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773752750727689468 X-GMAIL-MSGID: 1773752750727689468 The correct ilp32 macro name is __loongarch_ilp32. libitm/ChangeLog: * config/loongarch/asm.h: Fix ilp32 detection. --- libitm/config/loongarch/asm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libitm/config/loongarch/asm.h b/libitm/config/loongarch/asm.h index 39e02b45f17..11d6d3c079e 100644 --- a/libitm/config/loongarch/asm.h +++ b/libitm/config/loongarch/asm.h @@ -30,7 +30,7 @@ # define GPR_S st.d # define SZ_GPR 8 # define ADDSP(si) addi.d $sp, $sp, si -#elif defined(__loongarch64_ilp32) +#elif defined(__loongarch_ilp32) # define GPR_L ld.w # define GPR_S st.w # define SZ_GPR 4