Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/lib/libkern For m68k, do not compile in {,u}divsi3 and {...



details:   https://anonhg.NetBSD.org/src/rev/3ac154c8621b
branches:  trunk
changeset: 971393:3ac154c8621b
user:      rin <rin%NetBSD.org@localhost>
date:      Thu Apr 23 03:09:18 2020 +0000

description:
For m68k, do not compile in {,u}divsi3 and {,u}modsi3 since codes
generated by gcc do not depend on them.

We should not have unused functions in libkern for MODULAR.

diffstat:

 sys/lib/libkern/Makefile.compiler-rt |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r 8c7f31b0d98b -r 3ac154c8621b sys/lib/libkern/Makefile.compiler-rt
--- a/sys/lib/libkern/Makefile.compiler-rt      Thu Apr 23 00:35:14 2020 +0000
+++ b/sys/lib/libkern/Makefile.compiler-rt      Thu Apr 23 03:09:18 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.compiler-rt,v 1.10 2019/09/29 23:44:59 mrg Exp $
+# $NetBSD: Makefile.compiler-rt,v 1.11 2020/04/23 03:09:18 rin Exp $
 
 COMPILER_RT_SRCDIR=    ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist
 
@@ -65,9 +65,14 @@
 .if ${MACHINE_CPU} != "aarch64" && ${MACHINE} != "alpha"
 GENERIC_SRCS+= \
        divmodsi4.c \
+       udivmodsi4.c
+.endif
+
+.if ${MACHINE_CPU} != "aarch64" && ${MACHINE} != "alpha" && \
+    ${MACHINE_ARCH} != "m68k"
+GENERIC_SRCS+= \
        divsi3.c \
        modsi3.c \
-       udivmodsi4.c \
        udivsi3.c \
        umodsi3.c
 .endif



Home | Main Index | Thread Index | Old Index