https://gcc.gnu.org/g:342d5b3c255c727b74d4fa722caa57fb79285ae0
commit r14-12498-g342d5b3c255c727b74d4fa722caa57fb79285ae0 Author: Wu Haotian <[email protected]> Date: Sun Mar 29 20:52:51 2026 +0800 LoongArch: fix build failure of loongarch32-*-elf* target Bare-metal LoongArch target triple loongarch*-*-elf* contains references to "loongarch/linux.h" and "loongarch/t-linux", causing build failure for GCC targeting loongarch32-*-elf*. This commit removes the extra Linux references, and is tested by building a cross compiler for the loongarch32-picolibc-elf target. gcc/ChangeLog: * config.gcc: removed linux.h and t-linux for loongarch*-*-elf* targets Signed-off-by: Wu Haotian <[email protected]> (cherry picked from commit e43c8a7dbd14c51c530136d18fc911ff56c15df3) Diff: --- gcc/config.gcc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/config.gcc b/gcc/config.gcc index c267148bb211..039fa4694ad3 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -2566,8 +2566,8 @@ loongarch*-*-linux*) loongarch*-*-elf*) tm_file="elfos.h newlib-stdint.h ${tm_file}" - tm_file="${tm_file} loongarch/elf.h loongarch/linux.h loongarch/loongarch-driver.h" - tmake_file="${tmake_file} loongarch/t-multilib loongarch/t-linux" + tm_file="${tm_file} loongarch/elf.h loongarch/loongarch-driver.h" + tmake_file="${tmake_file} loongarch/t-multilib" gnu_ld=yes gas=yes
