aboutsummaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
authorYang Yujie <yangyujie@loongson.cn>2023-06-30 17:07:59 +0800
committerLulu Cheng <chenglulu@loongson.cn>2023-09-05 11:48:16 +0800
commit976f4f9e4770a567550e8b9a9f2fc531206cebba (patch)
tree83729f4382c6095545a144d6eb52ba19060c88fe /libgcc
parent18e2e589eefc9ac96a75ff890cf883f754b163e4 (diff)
downloadgcc-976f4f9e4770a567550e8b9a9f2fc531206cebba.zip
gcc-976f4f9e4770a567550e8b9a9f2fc531206cebba.tar.gz
gcc-976f4f9e4770a567550e8b9a9f2fc531206cebba.tar.bz2
LoongArch: support loongarch*-elf target
gcc/ChangeLog: * config.gcc: add loongarch*-elf target. * config/loongarch/elf.h: New file. Link against newlib by default. libgcc/ChangeLog: * config.host: add loongarch*-elf target.
Diffstat (limited to 'libgcc')
-rw-r--r--libgcc/config.host9
1 files changed, 7 insertions, 2 deletions
diff --git a/libgcc/config.host b/libgcc/config.host
index c94d69d..6a112a0 100644
--- a/libgcc/config.host
+++ b/libgcc/config.host
@@ -136,7 +136,7 @@ hppa*-*-*)
lm32*-*-*)
cpu_type=lm32
;;
-loongarch*-*-*)
+loongarch*-*)
cpu_type=loongarch
tmake_file="loongarch/t-loongarch"
if test "${libgcc_cv_loongarch_hard_float}" = yes; then
@@ -944,7 +944,7 @@ lm32-*-uclinux*)
extra_parts="$extra_parts crtbegin.o crtendS.o crtbeginT.o"
tmake_file="lm32/t-lm32 lm32/t-uclinux t-libgcc-pic t-softfp-sfdf t-softfp"
;;
-loongarch*-*-linux*)
+loongarch*-linux*)
extra_parts="$extra_parts crtfastmath.o"
tmake_file="${tmake_file} t-crtfm loongarch/t-crtstuff"
case ${host} in
@@ -954,6 +954,11 @@ loongarch*-*-linux*)
esac
md_unwind_header=loongarch/linux-unwind.h
;;
+loongarch*-elf*)
+ extra_parts="$extra_parts crtfastmath.o"
+ tmake_file="${tmake_file} t-crtfm loongarch/t-crtstuff"
+ tmake_file="${tmake_file} t-slibgcc-libgcc"
+ ;;
m32r-*-elf*)
tmake_file="$tmake_file m32r/t-m32r t-fdpbit"
extra_parts="$extra_parts crtinit.o crtfini.o"