Message ID | 20230831124810.20058-3-yangyujie@loongson.cn |
---|---|
State | Unresolved |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c792:0:b0:3f2:4152:657d with SMTP id b18csp218305vqu; Thu, 31 Aug 2023 05:51:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IERw8ns47DiFQi/SjsxF25oitdaiCsKm91KMmFgnZ574THC5x7uMbemHqV8HBPNL5veJxnU X-Received: by 2002:a2e:9ed3:0:b0:2bc:e46d:f4d0 with SMTP id h19-20020a2e9ed3000000b002bce46df4d0mr3963011ljk.2.1693486308029; Thu, 31 Aug 2023 05:51:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693486308; cv=none; d=google.com; s=arc-20160816; b=wzsgi1yokgGYcgK9Z0ftZ13lycpLGI6kj8Z/+9foRxroUhbu1ORYcyHdz+tzU6WC0n Ca2McshGwDdErGZvC1bdUSNsDvEWFq++aB1pe3sHWlpFgsiDl+DF6Z3Sio1xtPvGWJiX GBZ4KuYkO8vGuKjt5lLtf1o4Kk7sfn5ATIbvfiXEBDmmbc6oKiQWks7Q6jmSYj7sNlL/ eTBxDP1104wqf15asBs6+J6BfIAY4qT+sW3ffkLpD465kyiQF/LgpRB9HbQmdfVsOb50 Z2AAFcP0TbHmsL3u2wuvygfx+M4XPgpgk6yzg5Zc6L3ebid3xW/LtrcHjRSOv0JXCJDu LSzQ== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dmarc-filter:delivered-to; bh=7C+ZRmvT05G5i8YkvHjrnzE9qdej8B8CGJfIVLE1gjw=; fh=edJvlmc19TSiMATP499qmn3lAy59cZCAPKlAKmkZnD8=; b=U/06uKu1wFA/4h6zA6bLSIZwIBBXSiaDDqSRYh9Q/OyRnj+t6QYceqNDQfsAzd4Srd F/pHWpdETzmbKOtkZNeLLn0/WA/gY8YL1f572wERrTq94V2Do5Bw6yQfIZjWAPv99F4v EL2qpEGAlFutwJ7FaJebIhP3awBNXzon5C1zXyi5LAoN3a5gzo2UFm1OnMKh6/n0cWLo LWE1TkEC6gLyBwsWqXHawCh/kahaTbkuqnRK1eFRkIXYdYOgd4ybxFIt8tbBpnHvP4n6 2FXsVeA4WP16PgovRcNG62F0oQT6wyPlJppQkfJlGO5K6romDKXG0niVIJ2kzDfEt0u4 dtFg== ARC-Authentication-Results: i=1; mx.google.com; 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" Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id jt23-20020a170906dfd700b009889a249ae6si919087ejc.1026.2023.08.31.05.51.47 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Aug 2023 05:51:48 -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; 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" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C036D38319D6 for <ouuuleilei@gmail.com>; Thu, 31 Aug 2023 12:50:15 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id AF944385841D for <gcc-patches@gcc.gnu.org>; Thu, 31 Aug 2023 12:48:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AF944385841D Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=loongson.cn Received: from mail.loongson.cn ([114.242.206.163]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from <yangyujie@loongson.cn>) id 1qbh6J-0002Pa-B1 for gcc-patches@gcc.gnu.org; Thu, 31 Aug 2023 08:48:47 -0400 Received: from loongson.cn (unknown [192.168.100.1]) by gateway (Coremail) with SMTP id _____8Cx2eokjPBkxXIdAA--.55112S3; Thu, 31 Aug 2023 20:48:36 +0800 (CST) Received: from localhost.localdomain (unknown [192.168.100.1]) by localhost.localdomain (Coremail) with SMTP id AQAAf8AxecwXjPBkshxoAA--.26659S4; Thu, 31 Aug 2023 20:48:35 +0800 (CST) From: Yang Yujie <yangyujie@loongson.cn> To: gcc-patches@gcc.gnu.org Subject: [PATCH v3 2/4] LoongArch: define preprocessing macros "__loongarch_{arch, tune}" Date: Thu, 31 Aug 2023 20:48:08 +0800 Message-ID: <20230831124810.20058-3-yangyujie@loongson.cn> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230831124810.20058-1-yangyujie@loongson.cn> References: <20230831124810.20058-1-yangyujie@loongson.cn> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8AxecwXjPBkshxoAA--.26659S4 X-CM-SenderInfo: 51dqw5pxmlvqxorr0wxvrqhubq/ X-Coremail-Antispam: 1Uk129KBj93XoW7Cr43trWrur1ktF15Jr15KFX_yoW8JFWfp3 4Dur4aqr4rGrn7Ganrta45Wr1DAFyxKrW2qa1ay34xCa17GrWDZr1FyrnxXF15A3yYq3yI vryS93WYvF4UAagCm3ZEXasCq-sJn29KB7ZKAUJUUUU8529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUUkFb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r126r13M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Gr0_Xr1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVWxJr0_GcWl84ACjcxK6I8E87Iv6xkF7I0E14v2 6F4UJVW0owAS0I0E0xvYzxvE52x082IY62kv0487Mc804VCY07AIYIkI8VC2zVCFFI0UMc 02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUAVWUtwAv7VC2z280aVAF wI0_Cr0_Gr1UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCF04k20xvY0x 0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E 7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr41lIxAIcV C0I7IYx2IY67AKxVWUCVW8JwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF 04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r4j6F4UMIIF0xvEx4A2jsIEc7 CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07UKjgxUUUUU= Received-SPF: pass client-ip=114.242.206.163; envelope-from=yangyujie@loongson.cn; helo=mail.loongson.cn X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_FAIL, SPF_HELO_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.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Cc: panchenghui@loongson.cn, xuchenghua@loongson.cn, chenglulu@loongson.cn, joseph@codesourcery.com Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1775749099054659693 X-GMAIL-MSGID: 1775749099054659693 |
Series |
LoongArch: target configuration interface update
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | warning | Git am fail log |
Commit Message
Yang Yujie
Aug. 31, 2023, 12:48 p.m. UTC
These are exported according to the LoongArch Toolchain Conventions[1] as a replacement of the obsolete "_LOONGARCH_{ARCH,TUNE}" macros, which are expanded to strings representing the actual architecture and microarchitecture of the target. [1] currently relased at https://github.com/loongson/LoongArch-Documentation /blob/main/docs/LoongArch-toolchain-conventions-EN.adoc gcc/ChangeLog: * config/loongarch/loongarch-c.cc: Export macros "__loongarch_{arch,tune}" in the preprocessor. --- gcc/config/loongarch/loongarch-c.cc | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/gcc/config/loongarch/loongarch-c.cc b/gcc/config/loongarch/loongarch-c.cc index 7e3b57ff9b1..ec047e3822a 100644 --- a/gcc/config/loongarch/loongarch-c.cc +++ b/gcc/config/loongarch/loongarch-c.cc @@ -64,6 +64,9 @@ loongarch_cpu_cpp_builtins (cpp_reader *pfile) LARCH_CPP_SET_PROCESSOR ("_LOONGARCH_ARCH", la_target.cpu_arch); LARCH_CPP_SET_PROCESSOR ("_LOONGARCH_TUNE", la_target.cpu_tune); + LARCH_CPP_SET_PROCESSOR ("__loongarch_arch", la_target.cpu_arch); + LARCH_CPP_SET_PROCESSOR ("__loongarch_tune", la_target.cpu_tune); + /* Base architecture / ABI. */ if (TARGET_64BIT) {