https://gcc.gnu.org/g:7df57b3b0995562d953b0c231fa28ca8bd5df7c0
commit r16-8952-g7df57b3b0995562d953b0c231fa28ca8bd5df7c0 Author: Zhou Qiankang <[email protected]> Date: Mon May 18 16:03:02 2026 +0800 LoongArch: Fix missing plugin header for cpu-features.h [PR125362] 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 <[email protected]> (cherry picked from commit 61a39811893cf34794e6ffe5ab382882c6a5ddc0) Diff: --- 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 \
