Pushed to r17-615.
在 2026/5/20 上午9:06, Lulu Cheng 写道:
在 2026/5/18 下午4:03, Zhou Qiankang 写道:
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.
I am very sorry for this issue, as it was introduced by myself when
adding
the Function Multi-Versioning (FMV) support.
I agree that the proposed fix looks good to me.
Thanks!
gcc/ChangeLog:
PR target/125362
* config/loongarch/t-loongarch (TM_H): Add
common/config/loongarch/cpu-features.h.
Signed-off-by: Zhou Qiankang<[email protected]>
---
gcc/config/loongarch/t-loongarch | 1 +
1 file changed, 1 insertion(+)
diff --git a/gcc/config/loongarch/t-loongarch
b/gcc/config/loongarch/t-loongarch
index d24d660d99eb..5aefd21c4f18 100644
--- a/gcc/config/loongarch/t-loongarch
+++ b/gcc/config/loongarch/t-loongarch
@@ -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 \