]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
LoongArch: fix build failure of loongarch32-*-elf* target
authorWu Haotian <rigoligo03@gmail.com>
Sun, 29 Mar 2026 12:52:51 +0000 (20:52 +0800)
committerLulu Cheng <chenglulu@loongson.cn>
Tue, 31 Mar 2026 02:19:40 +0000 (10:19 +0800)
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 <rigoligo03@gmail.com>
gcc/config.gcc

index 036baa714d704fa84ec30faa2fe72acee9d099fd..34591bff970460a826aee182b6e778c6924408f5 100644 (file)
@@ -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