Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/arch/sparc Include sparc_v8 library into sparc64 32...
details: https://anonhg.NetBSD.org/src/rev/962d6c433119
branches: trunk
changeset: 797272:962d6c433119
user: nakayama <nakayama%NetBSD.org@localhost>
date: Sat Jul 12 19:21:48 2014 +0000
description:
Include sparc_v8 library into sparc64 32-bit compat libc library.
diffstat:
lib/libc/arch/sparc/Makefile.inc | 4 +++-
lib/libc/arch/sparc/gen/Makefile.inc | 10 ++++++++--
2 files changed, 11 insertions(+), 3 deletions(-)
diffs (42 lines):
diff -r 1b6603ffb333 -r 962d6c433119 lib/libc/arch/sparc/Makefile.inc
--- a/lib/libc/arch/sparc/Makefile.inc Sat Jul 12 19:11:57 2014 +0000
+++ b/lib/libc/arch/sparc/Makefile.inc Sat Jul 12 19:21:48 2014 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile.inc,v 1.14 2011/04/12 03:35:47 mrg Exp $
+# $NetBSD: Makefile.inc,v 1.15 2014/07/12 19:21:48 nakayama Exp $
SRCS+= __sigaction14_sigtramp.c __sigtramp2.S
+.if ${MACHINE} != "sparc64"
# `source' files built from m4 source
# the name `div.o' is taken for the ANSI C `div' function, hence sdiv here
SRCS+= rem.S sdiv.S udiv.S urem.S
@@ -34,3 +35,4 @@
@(echo "define(NAME,\`.urem')define(OP,\`rem')define(S,\`false')"; \
cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET}
@chmod 444 ${.TARGET}
+.endif
diff -r 1b6603ffb333 -r 962d6c433119 lib/libc/arch/sparc/gen/Makefile.inc
--- a/lib/libc/arch/sparc/gen/Makefile.inc Sat Jul 12 19:11:57 2014 +0000
+++ b/lib/libc/arch/sparc/gen/Makefile.inc Sat Jul 12 19:21:48 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.22 2009/12/06 07:12:17 uebayasi Exp $
+# $NetBSD: Makefile.inc,v 1.23 2014/07/12 19:21:48 nakayama Exp $
SRCS+= fabs.S modf.S
SRCS+= flt_rounds.c fpgetmask.c fpgetround.c fpgetsticky.c fpsetmask.c \
@@ -20,7 +20,13 @@
SRCS+= makecontext.c resumecontext.c _lwp.c swapcontext.S
-SRCS+= fixunsdfsi.S mul.S umul.S saveregs.S
+.if ${MACHINE} == "sparc64"
+.PATH: ${NETBSDSRCDIR}/lib/libarch/sparc/v8
+SRCS+= sparc_v8.S
+.else
+SRCS+= mul.S umul.S
+.endif
+SRCS+= fixunsdfsi.S saveregs.S
SRCS+= bswap16.c bswap32.c bswap64.c
LSRCS.sparc.gen= Lint_swapcontext.c
Home |
Main Index |
Thread Index |
Old Index