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 93E533858D28 for ; Thu, 12 Oct 2023 07:28:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 93E533858D28 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 _____8BxY_AtoCdl10sxAA--.29465S3; Thu, 12 Oct 2023 15:28:45 +0800 (CST) Received: from [10.20.4.107] (unknown [10.20.4.107]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxK9wsoCdluJAhAA--.4773S3; Thu, 12 Oct 2023 15:28:44 +0800 (CST) Subject: Re: [pushed][PATCH v2] LoongArch: Adjust makefile dependency for loongarch headers. To: Yang Yujie , gcc-patches@gcc.gnu.org Cc: xuchenghua@loongson.cn, jbglaw@lug-owl.de, xry111@xry111.site, richard.sandiford@arm.com References: <20231011095953.3184215-1-yangyujie@loongson.cn> From: chenglulu Message-ID: <25d1c04e-2438-f8f7-adf9-61f58e811cff@loongson.cn> Date: Thu, 12 Oct 2023 15:28:44 +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: <20231011095953.3184215-1-yangyujie@loongson.cn> Content-Type: text/plain; charset=gbk; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-CM-TRANSID:AQAAf8BxK9wsoCdluJAhAA--.4773S3 X-CM-SenderInfo: xfkh0wpoxo3qxorr0wxvrqhubq/ X-Coremail-Antispam: 1Uk129KBj93XoWxAw17Gw4DCF43KFy7CFy5KFX_yoW5WryDpr 9xZ3Zxtr48Jrn8GrsrJ343Xws8Ar9rGr129F1aq348Cr4UZry8Zr1kKr9xWF1DXws8ZrW2 q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AWAY,NICE_REPLY_A,SPF_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-4584. ÔÚ 2023/10/11 ÏÂÎç5:59, Yang Yujie дµÀ: > gcc/ChangeLog: > > * config.gcc: Add loongarch-driver.h to tm_files. > * config/loongarch/loongarch.h: Do not include loongarch-driver.h. > * config/loongarch/t-loongarch: Append loongarch-multilib.h to $(GTM_H) > instead of $(TM_H) for building generator programs. > --- > gcc/config.gcc | 4 ++-- > gcc/config/loongarch/loongarch.h | 3 --- > gcc/config/loongarch/t-loongarch | 3 ++- > 3 files changed, 4 insertions(+), 6 deletions(-) > > diff --git a/gcc/config.gcc b/gcc/config.gcc > index ee46d96bf62..60f63b6c7d4 100644 > --- a/gcc/config.gcc > +++ b/gcc/config.gcc > @@ -2524,7 +2524,7 @@ riscv*-*-freebsd*) > > loongarch*-*-linux*) > tm_file="elfos.h gnu-user.h linux.h linux-android.h glibc-stdint.h ${tm_file}" > - tm_file="${tm_file} loongarch/gnu-user.h loongarch/linux.h" > + tm_file="${tm_file} loongarch/gnu-user.h loongarch/linux.h loongarch/loongarch-driver.h" > extra_options="${extra_options} linux-android.opt" > tmake_file="${tmake_file} loongarch/t-multilib loongarch/t-linux" > gnu_ld=yes > @@ -2537,7 +2537,7 @@ loongarch*-*-linux*) > > loongarch*-*-elf*) > tm_file="elfos.h newlib-stdint.h ${tm_file}" > - tm_file="${tm_file} loongarch/elf.h loongarch/linux.h" > + tm_file="${tm_file} loongarch/elf.h loongarch/linux.h loongarch/loongarch-driver.h" > tmake_file="${tmake_file} loongarch/t-multilib loongarch/t-linux" > gnu_ld=yes > gas=yes > diff --git a/gcc/config/loongarch/loongarch.h b/gcc/config/loongarch/loongarch.h > index d357e32e414..19a18fb5f1b 100644 > --- a/gcc/config/loongarch/loongarch.h > +++ b/gcc/config/loongarch/loongarch.h > @@ -49,9 +49,6 @@ along with GCC; see the file COPYING3. If not see > > #define TARGET_LIBGCC_SDATA_SECTION ".sdata" > > -/* Driver native functions for SPEC processing in the GCC driver. */ > -#include "loongarch-driver.h" > - > /* This definition replaces the formerly used 'm' constraint with a > different constraint letter in order to avoid changing semantics of > the 'm' constraint when accepting new address formats in > diff --git a/gcc/config/loongarch/t-loongarch b/gcc/config/loongarch/t-loongarch > index 9b06fa84bcc..667a6bb3b50 100644 > --- a/gcc/config/loongarch/t-loongarch > +++ b/gcc/config/loongarch/t-loongarch > @@ -16,7 +16,8 @@ > # along with GCC; see the file COPYING3. If not see > # . > > -TM_H += loongarch-multilib.h $(srcdir)/config/loongarch/loongarch-driver.h > + > +GTM_H += loongarch-multilib.h > OPTIONS_H_EXTRA += $(srcdir)/config/loongarch/loongarch-def.h \ > $(srcdir)/config/loongarch/loongarch-tune.h >