aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Yujie <yangyujie@loongson.cn>2025-08-02 17:14:25 +0800
committerLulu Cheng <chenglulu@loongson.cn>2025-08-13 11:01:49 +0800
commit8a7a433e86f32871f56095434cc85eb2da1b550b (patch)
tree2d562e37ec827a13bc7577414938878f9ad70e5c
parent2e2589616ac18a0473e4f1e05dec6903d8131740 (diff)
downloadgcc-8a7a433e86f32871f56095434cc85eb2da1b550b.zip
gcc-8a7a433e86f32871f56095434cc85eb2da1b550b.tar.gz
gcc-8a7a433e86f32871f56095434cc85eb2da1b550b.tar.bz2
LoongArch: Prioritize target-specific makefile fragments
libgcc/ChangeLog: * config.host: Remove unused code. Include LoongArch-specific tmake_files after the OS-specific ones.
-rw-r--r--libgcc/config.host31
1 files changed, 12 insertions, 19 deletions
diff --git a/libgcc/config.host b/libgcc/config.host
index 92acdd0..82ea177 100644
--- a/libgcc/config.host
+++ b/libgcc/config.host
@@ -141,19 +141,6 @@ lm32*-*-*)
;;
loongarch*-*)
cpu_type=loongarch
- tmake_file="loongarch/t-loongarch"
- if test "${libgcc_cv_loongarch_hard_float}" = yes; then
- tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp"
- else
- tmake_file="${tmake_file} t-softfp-sfdf"
- fi
- if test "${ac_cv_sizeof_long_double}" = 16; then
- tmake_file="${tmake_file} loongarch/t-softfp-tf"
- fi
- if test "${host_address}" = 64; then
- tmake_file="${tmake_file} loongarch/t-loongarch64"
- fi
- tmake_file="${tmake_file} t-softfp"
;;
m32r*-*-*)
cpu_type=m32r
@@ -1003,16 +990,22 @@ lm32-*-uclinux*)
;;
loongarch*-linux*)
extra_parts="$extra_parts crtfastmath.o"
- tmake_file="${tmake_file} t-crtfm loongarch/t-crtstuff"
- case ${host} in
- *)
- tmake_file="${tmake_file} t-slibgcc-libgcc"
- ;;
- esac
md_unwind_header=loongarch/linux-unwind.h
+ tmake_file="${tmake_file} loongarch/t-loongarch t-softfp-sfdf loongarch/t-softfp-tf"
+ if test "${host_address}" = 64; then
+ tmake_file="${tmake_file} loongarch/t-loongarch64"
+ fi
+ tmake_file="${tmake_file} t-softfp"
+ tmake_file="${tmake_file} t-crtfm loongarch/t-crtstuff"
+ tmake_file="${tmake_file} t-slibgcc-libgcc"
;;
loongarch*-elf*)
extra_parts="$extra_parts crtfastmath.o"
+ tmake_file="${tmake_file} loongarch/t-loongarch t-softfp-sfdf loongarch/t-softfp-tf"
+ if test "${host_address}" = 64; then
+ tmake_file="${tmake_file} loongarch/t-loongarch64"
+ fi
+ tmake_file="${tmake_file} t-softfp"
tmake_file="${tmake_file} t-crtfm loongarch/t-crtstuff"
tmake_file="${tmake_file} t-slibgcc-libgcc"
;;