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}divmodsi4 al...



details:   https://anonhg.NetBSD.org/src/rev/b44c1a874297
branches:  trunk
changeset: 971434:b44c1a874297
user:      rin <rin%NetBSD.org@localhost>
date:      Fri Apr 24 00:22:57 2020 +0000

description:
For m68k, do not compile in {,u}divmodsi4 also, that are not used by
codes generated by gcc (confirmed not only for kernel, but also all
executables and libraries for userland).

Fix build failure for MODULAR kernel, noticed by mlelstv.

diffstat:

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

diffs (29 lines):

diff -r b5f8b6cbf8b8 -r b44c1a874297 sys/lib/libkern/Makefile.compiler-rt
--- a/sys/lib/libkern/Makefile.compiler-rt      Thu Apr 23 23:40:04 2020 +0000
+++ b/sys/lib/libkern/Makefile.compiler-rt      Fri Apr 24 00:22:57 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.compiler-rt,v 1.11 2020/04/23 03:09:18 rin Exp $
+# $NetBSD: Makefile.compiler-rt,v 1.12 2020/04/24 00:22:57 rin Exp $
 
 COMPILER_RT_SRCDIR=    ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist
 
@@ -62,17 +62,13 @@
        ctzsi2.c
 .endif
 
-.if ${MACHINE_CPU} != "aarch64" && ${MACHINE} != "alpha"
-GENERIC_SRCS+= \
-       divmodsi4.c \
-       udivmodsi4.c
-.endif
-
 .if ${MACHINE_CPU} != "aarch64" && ${MACHINE} != "alpha" && \
     ${MACHINE_ARCH} != "m68k"
 GENERIC_SRCS+= \
+       divmodsi4.c \
        divsi3.c \
        modsi3.c \
+       udivmodsi4.c \
        udivsi3.c \
        umodsi3.c
 .endif



Home | Main Index | Thread Index | Old Index