diff mbox series

Loongarch: Fix plugin header missing install.

Message ID 20230816014822.20018-1-guojie@loongson.cn
State New
Headers show
Series Loongarch: Fix plugin header missing install. | expand

Commit Message

Guo Jie Aug. 16, 2023, 1:48 a.m. UTC
gcc/ChangeLog:

	* config/loongarch/t-loongarch: Add loongarch-driver.h into
	TM_H. Add loongarch-def.h and loongarch-tune.h into
	OPTIONS_H_EXTRA.

Co-authored-by: Lulu Cheng <chenglulu@loongson.cn>
---
 gcc/config/loongarch/t-loongarch | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Lulu Cheng Aug. 17, 2023, 2:41 p.m. UTC | #1
LGTM!

在 2023/8/16 上午9:48, Guo Jie 写道:
> gcc/ChangeLog:
>
> 	* config/loongarch/t-loongarch: Add loongarch-driver.h into
> 	TM_H. Add loongarch-def.h and loongarch-tune.h into
> 	OPTIONS_H_EXTRA.
>
> Co-authored-by: Lulu Cheng <chenglulu@loongson.cn>
> ---
>   gcc/config/loongarch/t-loongarch | 4 ++++
>   1 file changed, 4 insertions(+)
>
> diff --git a/gcc/config/loongarch/t-loongarch b/gcc/config/loongarch/t-loongarch
> index 6d6e3435d59..e73f4f437ef 100644
> --- a/gcc/config/loongarch/t-loongarch
> +++ b/gcc/config/loongarch/t-loongarch
> @@ -16,6 +16,10 @@
>   # along with GCC; see the file COPYING3.  If not see
>   # <http://www.gnu.org/licenses/>.
>   
> +TM_H += $(srcdir)/config/loongarch/loongarch-driver.h
> +OPTIONS_H_EXTRA += $(srcdir)/config/loongarch/loongarch-def.h \
> +		   $(srcdir)/config/loongarch/loongarch-tune.h
> +
>   # Canonical target triplet from config.gcc
>   LA_MULTIARCH_TRIPLET = $(patsubst LA_MULTIARCH_TRIPLET=%,%,$\
>   $(filter LA_MULTIARCH_TRIPLET=%,$(tm_defines)))
Chenghua Xu Aug. 19, 2023, 3:58 a.m. UTC | #2
Pushed as r14-3331.

Thanks.
chenglulu writes:

> LGTM!
>
> 在 2023/8/16 上午9:48, Guo Jie 写道:
>> gcc/ChangeLog:
>>
>> 	* config/loongarch/t-loongarch: Add loongarch-driver.h into
>> 	TM_H. Add loongarch-def.h and loongarch-tune.h into
>> 	OPTIONS_H_EXTRA.
>>
>> Co-authored-by: Lulu Cheng <chenglulu@loongson.cn>
>> ---
>>   gcc/config/loongarch/t-loongarch | 4 ++++
>>   1 file changed, 4 insertions(+)
>>
>> diff --git a/gcc/config/loongarch/t-loongarch b/gcc/config/loongarch/t-loongarch
>> index 6d6e3435d59..e73f4f437ef 100644
>> --- a/gcc/config/loongarch/t-loongarch
>> +++ b/gcc/config/loongarch/t-loongarch
>> @@ -16,6 +16,10 @@
>>   # along with GCC; see the file COPYING3.  If not see
>>   # <http://www.gnu.org/licenses/>.
>>   +TM_H += $(srcdir)/config/loongarch/loongarch-driver.h
>> +OPTIONS_H_EXTRA += $(srcdir)/config/loongarch/loongarch-def.h \
>> +		   $(srcdir)/config/loongarch/loongarch-tune.h
>> +
>>   # Canonical target triplet from config.gcc
>>   LA_MULTIARCH_TRIPLET = $(patsubst LA_MULTIARCH_TRIPLET=%,%,$\
>>   $(filter LA_MULTIARCH_TRIPLET=%,$(tm_defines)))
Huacai Chen Aug. 19, 2023, 2:49 p.m. UTC | #3
Thank you very much, I think this should also be backported to Gcc12/13.

Huacai

On Sat, Aug 19, 2023 at 11:59 AM Chenghua Xu <xuchenghua@loongson.cn> wrote:
>
> Pushed as r14-3331.
>
> Thanks.
> chenglulu writes:
>
> > LGTM!
> >
> > 在 2023/8/16 上午9:48, Guo Jie 写道:
> >> gcc/ChangeLog:
> >>
> >>      * config/loongarch/t-loongarch: Add loongarch-driver.h into
> >>      TM_H. Add loongarch-def.h and loongarch-tune.h into
> >>      OPTIONS_H_EXTRA.
> >>
> >> Co-authored-by: Lulu Cheng <chenglulu@loongson.cn>
> >> ---
> >>   gcc/config/loongarch/t-loongarch | 4 ++++
> >>   1 file changed, 4 insertions(+)
> >>
> >> diff --git a/gcc/config/loongarch/t-loongarch b/gcc/config/loongarch/t-loongarch
> >> index 6d6e3435d59..e73f4f437ef 100644
> >> --- a/gcc/config/loongarch/t-loongarch
> >> +++ b/gcc/config/loongarch/t-loongarch
> >> @@ -16,6 +16,10 @@
> >>   # along with GCC; see the file COPYING3.  If not see
> >>   # <http://www.gnu.org/licenses/>.
> >>   +TM_H += $(srcdir)/config/loongarch/loongarch-driver.h
> >> +OPTIONS_H_EXTRA += $(srcdir)/config/loongarch/loongarch-def.h \
> >> +               $(srcdir)/config/loongarch/loongarch-tune.h
> >> +
> >>   # Canonical target triplet from config.gcc
> >>   LA_MULTIARCH_TRIPLET = $(patsubst LA_MULTIARCH_TRIPLET=%,%,$\
> >>   $(filter LA_MULTIARCH_TRIPLET=%,$(tm_defines)))
>
diff mbox series

Patch

diff --git a/gcc/config/loongarch/t-loongarch b/gcc/config/loongarch/t-loongarch
index 6d6e3435d59..e73f4f437ef 100644
--- a/gcc/config/loongarch/t-loongarch
+++ b/gcc/config/loongarch/t-loongarch
@@ -16,6 +16,10 @@ 
 # along with GCC; see the file COPYING3.  If not see
 # <http://www.gnu.org/licenses/>.
 
+TM_H += $(srcdir)/config/loongarch/loongarch-driver.h
+OPTIONS_H_EXTRA += $(srcdir)/config/loongarch/loongarch-def.h \
+		   $(srcdir)/config/loongarch/loongarch-tune.h
+
 # Canonical target triplet from config.gcc
 LA_MULTIARCH_TRIPLET = $(patsubst LA_MULTIARCH_TRIPLET=%,%,$\
 $(filter LA_MULTIARCH_TRIPLET=%,$(tm_defines)))