Message ID | 20240108011410.305003-1-yangyujie@loongson.cn |
---|---|
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:37c1:b0:101:2151:f287 with SMTP id y1csp779985dyq; Sun, 7 Jan 2024 17:25:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IFw6eV8F8K+Wa5dJng2K1SiPV4unYu9WkipbQaN8ya0dNdZWLoPwBq7nLIaRfV7e/c+cKRv X-Received: by 2002:ad4:5aad:0:b0:67c:cd09:9b93 with SMTP id u13-20020ad45aad000000b0067ccd099b93mr4707534qvg.7.1704677141185; Sun, 07 Jan 2024 17:25:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1704677141; cv=pass; d=google.com; s=arc-20160816; b=fK4LcOViwbDcarWhcvXSJPTtBBT/f5pIvRBG5p3/9GMhiAYrSNdoHbTev6JoKqeWTD Esb9eJna0Agk3m6GOUvKHXu1s7SCH/jCTrlp3fPB5xJzJQ9RRPYre9rvWKJd42NhURIo LZYxk6XzY1QmAyLmfN2IyB/ThBbl6+az005TSmJT1EBPNZf7nMXN2UTGuz/0Y+hhKdj6 i6pBNHsSbpqclFpCYgwPEH3Ck2FByj0qsLssjJy7LKHJFvCkQGOo90p5A1jObF9uExKa aFgPWasU8tjFatubJITGv2AIIIQ6lDMe8TZ/t1wY8fk4upLnKQ9dxaeeCqQ9Y7pf5edl D03w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:arc-filter :dmarc-filter:delivered-to; bh=TC5nK8FLqcj+L9BCWdtd9YbBKKg6W2bQpra2ujgpKVc=; fh=sZLDO+6GrGvmqAJw8D519hskXPb+X/EHcBBRRjfMSEs=; b=dGfjLwCbVlFQm63o88bo6sWpLLQYIcgca9kBRm81hMZ4t+09Cl1m3pRVREVAqGQmFH kdnKCwmfpLi7xKAN/BVaXm4uOww88QBNUTCezDffYxauh+ASiBRvgymIYERoYClKGKWv tOEy3UaP5vV+vTbB8jJIdcoD5HkLgFV+z4mZ0Fhb2QiAM82zgYPIRtwxp2X+fCtEKIyZ 7rI23FYgDUwmwvgA9HITW3FfpvrzIQR7gg+4tLt4seSRaX5okSeeoys2pWMFVErvBaa4 MQvQ+kBHH/ocbiQdX5RfkvcjvEPRQsRZ9w/CcI4QlUl0k0XtRjCG+9Z/AJHELVeaY7qz gP1A== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); 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 (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id q2-20020a0c9a42000000b00680607b7b8fsi3311238qvd.82.2024.01.07.17.25.41 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Jan 2024 17:25:41 -0800 (PST) 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; arc=pass (i=1); 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 B5AA5387606A for <ouuuleilei@gmail.com>; Mon, 8 Jan 2024 01:25:21 +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 C83AE3865C26 for <gcc-patches@gcc.gnu.org>; Mon, 8 Jan 2024 01:20:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C83AE3865C26 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=loongson.cn ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C83AE3865C26 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:470:142:3::10 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704676819; cv=none; b=qqm6vflF9IdqK0l4Dxq/c4bh0e2B62CoaLdjazdsX8NxTklSn7/tfTKPV9Q84YP8mdk0sU1EzELBvv+vLj52URrOQt1QlikRr+qn77W++5NaHVrFxQvWtUNDpzDl48ALcmP8HTOYSS5Wq2hATJAFyKckEg7KHHV14GjipBlqa2w= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704676819; c=relaxed/simple; bh=JIxaqWed7Dt0IBcWi4j4bCs9lYrz08+7kAOAA5yj/Es=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=cQUXowIFOfbNHLqjAOqIpvH4s47kibj5REthZVOi/nuBWQULkEKIND4iXvHv05k+AnmGoOejHXlXUNnTVAjXoQ12Gq9L75Vn8fJUu1LYpB3Do1VYfGMEst8NAW2gmDB8QjfRPzqfclwnfhKZ1j9xIgx3/raGoQDz82WE6263F0k= ARC-Authentication-Results: i=1; server2.sourceware.org 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 1rMeJJ-0006v4-0c for gcc-patches@gcc.gnu.org; Sun, 07 Jan 2024 20:20:16 -0500 Received: from loongson.cn (unknown [114.243.106.119]) by gateway (Coremail) with SMTP id _____8BxHLu9TZtlu_4CAA--.1544S3; Mon, 08 Jan 2024 09:19:57 +0800 (CST) Received: from localhost.localdomain (unknown [114.243.106.119]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxTN65TZtlLMEGAA--.838S2; Mon, 08 Jan 2024 09:19:54 +0800 (CST) From: Yang Yujie <yangyujie@loongson.cn> To: gcc-patches@gcc.gnu.org Cc: xry111@xry111.site, chenglulu@loongson.cn, xuchenghua@loongson.cn, Yang Yujie <yangyujie@loongson.cn> Subject: [PATCH v2 0/4] Adjust option handling code Date: Mon, 8 Jan 2024 09:14:06 +0800 Message-ID: <20240108011410.305003-1-yangyujie@loongson.cn> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8CxTN65TZtlLMEGAA--.838S2 X-CM-SenderInfo: 51dqw5pxmlvqxorr0wxvrqhubq/1tbiAQAKAGWbSakAnQADsL X-Coremail-Antispam: 1Uk129KBj93XoW7Cr15Gr4DGry8Gw15CFy5WrX_yoW8Gw4xpr 9xZwnxtr48Arsaqr1DJ34fWw4DJr9rK342qa13tr18Cw47ur1UZFn5Gr9rXFnrZws8Xr92 vr1rKw4Yva1UA3gCm3ZEXasCq-sJn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUUkjb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r106r15M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_JFI_Gr1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Jr0_Gr1l84ACjcxK6I8E87Iv67AKxVW8JVWxJwA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_ Gr0_Gr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6xACxx1l5I 8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1j6r18McIj6I8E87Iv67AK xVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41l42xK82IYc2Ij64 vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8G jcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI7VAKI48JMIIF0xvE2I x0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE42xK 8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I 0E14v26r1j6r4UYxBIdaVFxhVjvjDU0xZFpf9x07j8yCJUUUUU= 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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Status: No, score=1.2 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, RCVD_IN_BARRACUDACENTRAL, SPF_FAIL, SPF_HELO_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * 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> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787483537794257305 X-GMAIL-MSGID: 1787483537794257305 |
Series | Adjust option handling code | |
Message
Yang Yujie
Jan. 8, 2024, 1:14 a.m. UTC
This patchset performs some code cleanup, and is bootstrapped and regtested on loongarch64-linux-gnu. Changes from v1 -> v2: * Replaced all TARGET_<evolution> macros from .opt. * Fixed definition of ISA_HAS_LAMCAS. Yang Yujie (4): LoongArch: Handle ISA evolution switches along with other options LoongArch: Rename ISA_BASE_LA64V100 to ISA_BASE_LA64 LoongArch: Use enums for constants LoongArch: Simplify -mexplicit-reloc definitions gcc/config/loongarch/genopts/genstr.sh | 2 +- .../loongarch/genopts/loongarch-strings | 8 +- gcc/config/loongarch/genopts/loongarch.opt.in | 16 +-- gcc/config/loongarch/lasx.md | 4 +- gcc/config/loongarch/loongarch-builtins.cc | 6 +- gcc/config/loongarch/loongarch-c.cc | 2 +- gcc/config/loongarch/loongarch-cpu.cc | 2 +- gcc/config/loongarch/loongarch-def.cc | 14 +- gcc/config/loongarch/loongarch-def.h | 120 +++++++++++------- gcc/config/loongarch/loongarch-driver.cc | 5 +- gcc/config/loongarch/loongarch-opts.cc | 27 +++- gcc/config/loongarch/loongarch-opts.h | 26 +++- gcc/config/loongarch/loongarch-str.h | 7 +- gcc/config/loongarch/loongarch.cc | 36 ++---- gcc/config/loongarch/loongarch.md | 12 +- gcc/config/loongarch/loongarch.opt | 20 +-- gcc/config/loongarch/lsx.md | 4 +- gcc/config/loongarch/sync.md | 22 ++-- 18 files changed, 180 insertions(+), 153 deletions(-)
Comments
Pushed to r14-7085...r14-7088 在 2024/1/8 上午9:14, Yang Yujie 写道: > This patchset performs some code cleanup, and is bootstrapped and regtested > on loongarch64-linux-gnu. > > Changes from v1 -> v2: > * Replaced all TARGET_<evolution> macros from .opt. > * Fixed definition of ISA_HAS_LAMCAS. > > Yang Yujie (4): > LoongArch: Handle ISA evolution switches along with other options > LoongArch: Rename ISA_BASE_LA64V100 to ISA_BASE_LA64 > LoongArch: Use enums for constants > LoongArch: Simplify -mexplicit-reloc definitions > > gcc/config/loongarch/genopts/genstr.sh | 2 +- > .../loongarch/genopts/loongarch-strings | 8 +- > gcc/config/loongarch/genopts/loongarch.opt.in | 16 +-- > gcc/config/loongarch/lasx.md | 4 +- > gcc/config/loongarch/loongarch-builtins.cc | 6 +- > gcc/config/loongarch/loongarch-c.cc | 2 +- > gcc/config/loongarch/loongarch-cpu.cc | 2 +- > gcc/config/loongarch/loongarch-def.cc | 14 +- > gcc/config/loongarch/loongarch-def.h | 120 +++++++++++------- > gcc/config/loongarch/loongarch-driver.cc | 5 +- > gcc/config/loongarch/loongarch-opts.cc | 27 +++- > gcc/config/loongarch/loongarch-opts.h | 26 +++- > gcc/config/loongarch/loongarch-str.h | 7 +- > gcc/config/loongarch/loongarch.cc | 36 ++---- > gcc/config/loongarch/loongarch.md | 12 +- > gcc/config/loongarch/loongarch.opt | 20 +-- > gcc/config/loongarch/lsx.md | 4 +- > gcc/config/loongarch/sync.md | 22 ++-- > 18 files changed, 180 insertions(+), 153 deletions(-) >