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/79325eecc836
branches:  trunk
changeset: 1009428:79325eecc836
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 4b23de560472 -r 79325eecc836 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