Module Name: src Committed By: rin Date: Thu Apr 23 03:09:18 UTC 2020
Modified Files: src/sys/lib/libkern: Makefile.compiler-rt Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/sys/lib/libkern/Makefile.compiler-rt Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/lib/libkern/Makefile.compiler-rt diff -u src/sys/lib/libkern/Makefile.compiler-rt:1.10 src/sys/lib/libkern/Makefile.compiler-rt:1.11 --- src/sys/lib/libkern/Makefile.compiler-rt:1.10 Sun Sep 29 23:44:59 2019 +++ src/sys/lib/libkern/Makefile.compiler-rt Thu Apr 23 03:09:18 2020 @@ -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 @@ GENERIC_SRCS+= \ .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