https://gcc.gnu.org/g:cabffeef7f72114641e78a8e8ec6cb14526577f5

commit r15-11029-gcabffeef7f72114641e78a8e8ec6cb14526577f5
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 53be4a7cfe75..eb09eedfb09d 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -2602,8 +2602,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

Reply via email to