From: Wu Haotian Date: Sun, 29 Mar 2026 12:52:51 +0000 (+0800) Subject: LoongArch: fix build failure of loongarch32-*-elf* target X-Git-Tag: basepoints/gcc-17~452 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e43c8a7dbd14c51c530136d18fc911ff56c15df3;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/config.gcc b/gcc/config.gcc index 036baa714d7..34591bff970 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -2672,8 +2672,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