]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
LoongArch: Fix missing plugin header for cpu-features.h [PR125362]
authorZhou Qiankang <wszqkzqk@qq.com>
Mon, 18 May 2026 08:03:02 +0000 (16:03 +0800)
committerLulu Cheng <chenglulu@loongson.cn>
Wed, 20 May 2026 02:17:19 +0000 (10:17 +0800)
When compiling GCC plugins that include target headers on LoongArch,
the build fails because cpu-features.h is not installed during
`make install-plugin`.  The header, included by loongarch-protos.h,
was not listed in any variable that feeds PLUGIN_HEADERS.  Add it to
TM_H, following the same approach used by i386 for i386-cpuinfo.h.

gcc/ChangeLog:

PR target/125362
* config/loongarch/t-loongarch (TM_H): Add
common/config/loongarch/cpu-features.h.

Signed-off-by: Zhou Qiankang <wszqkzqk@qq.com>
gcc/config/loongarch/t-loongarch

index d24d660d99eb6cdb6f1a9444f2e5528d0cddc010..5aefd21c4f18b22db8e3a13775c22298d572cae5 100644 (file)
@@ -18,6 +18,7 @@
 
 
 GTM_H += loongarch-multilib.h
+TM_H += $(srcdir)/common/config/loongarch/cpu-features.h
 OPTIONS_H_EXTRA += $(srcdir)/config/loongarch/loongarch-def.h      \
                   $(srcdir)/config/loongarch/loongarch-def-array.h \
                   $(srcdir)/config/loongarch/loongarch-tune.h      \