aboutsummaryrefslogtreecommitdiff
path: root/lib/libcompiler_rt/Makefile.inc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcompiler_rt/Makefile.inc')
-rw-r--r--lib/libcompiler_rt/Makefile.inc7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libcompiler_rt/Makefile.inc b/lib/libcompiler_rt/Makefile.inc
index 27a5879dd24a..5913faab838b 100644
--- a/lib/libcompiler_rt/Makefile.inc
+++ b/lib/libcompiler_rt/Makefile.inc
@@ -125,7 +125,7 @@ SRCF+= umodti3
#
# 128-bit quad precision long double support,
-# only used on arm64 and riscv.
+# only used on some architectures.
#
.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "riscv"
SRCF+= addtf3
@@ -146,8 +146,9 @@ SRCF+= trunctfdf2
SRCF+= trunctfsf2
.endif
-# These are already shipped by libc.a on arm and mips
-.if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips"
+# These are already shipped by libc.a on some architectures.
+.if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips" && \
+ ${MACHINE_CPUARCH} != "riscv"
SRCF+= adddf3
SRCF+= addsf3
SRCF+= divdf3