Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/arch/powerpc/string For evbppc, use C version of bc...
details: https://anonhg.NetBSD.org/src/rev/6248c4c8b695
branches: trunk
changeset: 984793:6248c4c8b695
user: rin <rin%NetBSD.org@localhost>
date: Sat Jul 24 05:27:25 2021 +0000
description:
For evbppc, use C version of bcopy(3), memcpy(3), memcmp(3), and
memmove(3) consistently for debug library (*.go) in order to avoid
alignment faults for 403.
diffstat:
lib/libc/arch/powerpc/string/Makefile.inc | 19 ++++++-------------
1 files changed, 6 insertions(+), 13 deletions(-)
diffs (33 lines):
diff -r b8a4960345dc -r 6248c4c8b695 lib/libc/arch/powerpc/string/Makefile.inc
--- a/lib/libc/arch/powerpc/string/Makefile.inc Fri Jul 23 22:34:12 2021 +0000
+++ b/lib/libc/arch/powerpc/string/Makefile.inc Sat Jul 24 05:27:25 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.13 2010/03/14 00:26:10 mrg Exp $
+# $NetBSD: Makefile.inc,v 1.14 2021/07/24 05:27:25 rin Exp $
SRCS+= bzero.S ffs.S strlen.S
NO_SRCS+= memset.S
@@ -7,18 +7,11 @@
# the special rules here are to override the suffix rules which seem
# to prefer .S files over .c
.if ${MACHINE} == "evbppc"
-bcopy.o: bcopy.c
-bcopy.po: bcopy.c
-bcopy.pico: bcopy.c
-memcpy.o: memcpy.c
-memcpy.po: memcpy.c
-memcpy.pico: memcpy.c
-memcmp.o: memcmp.c
-memcmp.po: memcmp.c
-memcmp.pico: memcmp.c
-memmove.o: memmove.c
-memmove.po: memmove.c
-memmove.pico: memmove.c
+. for name in bcopy memcmp memcpy memmove
+. for suffix in o po pico go
+${name}.${suffix}: ${name}.c
+. endfor
+. endfor
.else
SRCS+= memcmp.S bcopy.S memcpy.S memmove.S
.endif
Home |
Main Index |
Thread Index |
Old Index