Message ID | 20230830015808.19870-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:a7d1:0:b0:3f2:4152:657d with SMTP id p17csp4274000vqm; Tue, 29 Aug 2023 19:00:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG9H5oyUDcK/Kq9gNwWe/Z0e2DK5hlxUuZ4SzTmAvEmB6/85lUcUxf7Nkyz7KiiH36AO9Mw X-Received: by 2002:a5d:404c:0:b0:313:eaf5:515 with SMTP id w12-20020a5d404c000000b00313eaf50515mr493556wrp.6.1693360839445; Tue, 29 Aug 2023 19:00:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693360839; cv=none; d=google.com; s=arc-20160816; b=cRxwuK6xJYcT3zAXlglo/QdNQxo2y83fGtAS5baqcfVHHlK/AHMjiyT39bccd7ITN8 6/LR9Qzn6BVZ7tpQ3sG5CnN9XreR3/uBJbjad3++s180uaU3W0hg0uu3rL5Dv/0SykxT Qcbdt2xc1EfBLBNEqV6WFSlXob7Yg7SX2RuAfjZmqFL8hlcTTE38OTw5k7gwSuwPr0hx C/++h+f1UTHY0ga0plUqY81rte7uWFnAGZyub/GbqR32QQloyDQvm0GpVHZ/Cz37MlPo Sywo4UUs7JOLyF5ALOGnzpfVbXqXKMaThwXpMmk/BNOy4T1jOhxkdPcID6YdzxeQYWYE 5eJQ== 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=+5OiTSMMV8nLi07UPeKgIdk5HIrUS95Zc7GG9BSSpdE=; b=aAOhkHEw/20gdD6SZ/TLggnA4BM8FMw5mfhw7eR/JQkNtVlvmTgtlqCl/1qqoBmX28 5GH3ZojfEa87IbRb62S3jbs6XoqmcuwL6aB6mWXtREjxmLY2QvvsLgDVboSW+agno+kk 2OjiDLsZ3No1Ii1wQBEuaYUhQB1eoU6ulWxtYy20UJPeNgVe3lflk6sYAYo6Sg9dlUr/ w0DLtkbsBr/GykhbOBB+4qOLPOuCdhCYFS0zVRDvo6cZvSu0aNj7o46TMr45KuTak4CA fLDBxKaFkEEJLh48PL2n8029dVdzE0u3PrXaN+DlrXwVQC+Kocjy7+jEmZyJ5PF3tXkD mdEA== 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 j10-20020aa7ca4a000000b005256721cda6si6752820edt.509.2023.08.29.19.00.39 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Aug 2023 19:00:39 -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 DC491385C424 for <ouuuleilei@gmail.com>; Wed, 30 Aug 2023 01:59:08 +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 EFFEF3853D0F for <gcc-patches@gcc.gnu.org>; Wed, 30 Aug 2023 01:58:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EFFEF3853D0F 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 1qbATc-0004vM-So for gcc-patches@gcc.gnu.org; Tue, 29 Aug 2023 21:58:40 -0400 Received: from loongson.cn (unknown [192.168.100.1]) by gateway (Coremail) with SMTP id _____8Cx77tGou5k6PQcAA--.103S3; Wed, 30 Aug 2023 09:58:30 +0800 (CST) Received: from localhost.localdomain (unknown [192.168.100.1]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Bxicw5ou5knONmAA--.26621S4; Wed, 30 Aug 2023 09:58:29 +0800 (CST) From: Yang Yujie <yangyujie@loongson.cn> To: gcc-patches@gcc.gnu.org Subject: [PATCH v2 2/4] LoongArch: define preprocessing macros "__loongarch_{arch, tune}" Date: Wed, 30 Aug 2023 09:58:06 +0800 Message-ID: <20230830015808.19870-3-yangyujie@loongson.cn> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230830015808.19870-1-yangyujie@loongson.cn> References: <20230830015808.19870-1-yangyujie@loongson.cn> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8Bxicw5ou5knONmAA--.26621S4 X-CM-SenderInfo: 51dqw5pxmlvqxorr0wxvrqhubq/ X-Coremail-Antispam: 1Uk129KBj93XoW7Cr43trWrur1ktF15Jr15KFX_yoW8JFWfp3 4Dur4aqr4rGrn7Ganrta45Wr1DAFyxKrW2qa1ay34xCa17GrWDZr1FyrnxXF15A3yYq3yI vryS93WYvF4UAagCm3ZEXasCq-sJn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUUkFb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r1Y6r17M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_JFI_Gr1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVCY1x0267AK xVW8Jr0_Cr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6xACxx 1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r126r1DMcIj6I8E87Iv 67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41l42xK82IYc2 Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s02 6x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI7VAKI48JMIIF0x vE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE 42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6x kF7I0E14v26r1j6r4UYxBIdaVFxhVjvjDU0xZFpf9x07j83kZUUUUU= 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.8 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: xuchenghua@loongson.cn, panchenghui@loongson.cn, chenglulu@loongson.cn 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: 1775617535298082067 X-GMAIL-MSGID: 1775617535298082067 |
Series |
LoongArch: target configuration interface update
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | warning | Git am fail log |
Commit Message
Yang Yujie
Aug. 30, 2023, 1:58 a.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) {