From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by sourceware.org (Postfix) with ESMTP id C02B03858D32 for ; Tue, 5 Sep 2023 04:40:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C02B03858D32 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=loongson.cn Received: from loongson.cn (unknown [10.20.4.107]) by gateway (Coremail) with SMTP id _____8DxPOs3sfZkmFMfAA--.57909S3; Tue, 05 Sep 2023 12:40:23 +0800 (CST) Received: from [10.20.4.107] (unknown [10.20.4.107]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Ax8uQ0sfZk6FdsAA--.63875S3; Tue, 05 Sep 2023 12:40:20 +0800 (CST) Subject: Re:[pushed] [PATCH v3 0/4] LoongArch: target configuration interface update To: Yang Yujie , gcc-patches@gcc.gnu.org Cc: xuchenghua@loongson.cn, panchenghui@loongson.cn, joseph@codesourcery.com, xry111@xry111.site References: <20230831124810.20058-1-yangyujie@loongson.cn> From: chenglulu Message-ID: <50af5fb3-b75d-eef2-ccfe-8141112c9f61@loongson.cn> Date: Tue, 5 Sep 2023 12:40:20 +0800 User-Agent: Mozilla/5.0 (X11; Linux loongarch64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20230831124810.20058-1-yangyujie@loongson.cn> Content-Type: text/plain; charset=gbk; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-CM-TRANSID:AQAAf8Ax8uQ0sfZk6FdsAA--.63875S3 X-CM-SenderInfo: xfkh0wpoxo3qxorr0wxvrqhubq/ X-Coremail-Antispam: 1Uk129KBj93XoWxCF45ArW3Wr4UGFW3uFy8WFX_yoW5GF1kpr W3uwnIyF48Jrs3Wrsrt34rWws8XryxGw1ava13Kr18C3y7ZryUZF1xCr9rZF1DZws5Xr9F vr1rK3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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 List-Id: Pushed to r14-3665. ÔÚ 2023/8/31 ÏÂÎç8:48, Yang Yujie дµÀ: > This is an update of > https://gcc.gnu.org/pipermail/gcc-patches/2023-August/628772.html > > Changes since the last patchset: > > 1. Fix texinfo format of the install.texi document. > 2. Add documentation for --with-strict-align-lib. > > v1 -> v2: > 1. Add new configure option --with-strict-align-lib to control > whether -mstrict-align should be used when building libraries. > This facilitates building toolchains targeting both LA264 > (Loongson 2k1000la) and non-LA264 cores. > > 2. Define preprocessing macros __loongarch_sx / __loongarch_asx > / __loongarch_simd_width that indicates the enabled SIMD > extensions. > > 3. Keep the current non-symmetric multidir layout, but do not build > duplicate multilib variants with the same ABI option. Make > --with-abi= obsolete to ensure a consistent directory layout. > (ABI type of the "toplevel" libraries can be inferred from the > target triplet) > > 4. Using "-mno-lasx" do not cause a fallback to "-msimd=none" as > long as the -march= architecture or the default --with-simd= > setting has LSX support. > > Yang Yujie (4): > LoongArch: improved target configuration interface > LoongArch: define preprocessing macros "__loongarch_{arch,tune}" > LoongArch: add new configure option --with-strict-align-lib > LoongArch: support loongarch*-elf target > > config-ml.in | 10 + > gcc/config.gcc | 408 ++++++++++-------- > gcc/config/loongarch/elf.h | 52 +++ > .../loongarch/genopts/loongarch-strings | 8 +- > gcc/config/loongarch/genopts/loongarch.opt.in | 62 ++- > gcc/config/loongarch/la464.md | 32 +- > gcc/config/loongarch/loongarch-c.cc | 22 +- > gcc/config/loongarch/loongarch-cpu.cc | 263 ++++++----- > gcc/config/loongarch/loongarch-cpu.h | 3 +- > gcc/config/loongarch/loongarch-def.c | 67 +-- > gcc/config/loongarch/loongarch-def.h | 57 +-- > gcc/config/loongarch/loongarch-driver.cc | 208 +++++---- > gcc/config/loongarch/loongarch-driver.h | 40 +- > gcc/config/loongarch/loongarch-opts.cc | 372 +++++++++++----- > gcc/config/loongarch/loongarch-opts.h | 59 +-- > gcc/config/loongarch/loongarch-str.h | 7 +- > gcc/config/loongarch/loongarch.cc | 87 ++-- > gcc/config/loongarch/loongarch.opt | 60 ++- > gcc/config/loongarch/t-linux | 32 +- > gcc/doc/install.texi | 56 ++- > gcc/doc/invoke.texi | 32 +- > libgcc/config.host | 9 +- > 22 files changed, 1261 insertions(+), 685 deletions(-) > create mode 100644 gcc/config/loongarch/elf.h >