Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/common/lib/libc/arch/arm/atomic Move the __sync_* ops added ...
details: https://anonhg.NetBSD.org/src/rev/16a0d40540e4
branches: trunk
changeset: 326910:16a0d40540e4
user: martin <martin%NetBSD.org@localhost>
date: Sat Feb 22 08:08:56 2014 +0000
description:
Move the __sync_* ops added in the previous change to a libc-only section
diffstat:
common/lib/libc/arch/arm/atomic/Makefile.inc | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r 3d7584b3bab3 -r 16a0d40540e4 common/lib/libc/arch/arm/atomic/Makefile.inc
--- a/common/lib/libc/arch/arm/atomic/Makefile.inc Sat Feb 22 08:02:28 2014 +0000
+++ b/common/lib/libc/arch/arm/atomic/Makefile.inc Sat Feb 22 08:08:56 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.16 2014/02/21 21:54:38 martin Exp $
+# $NetBSD: Makefile.inc,v 1.17 2014/02/22 08:08:56 martin Exp $
ARMV6= ${CPUFLAGS:M-march=armv6*} ${CPUFLAGS:M-mcpu=arm11*}
ARMV6+= ${CFLAGS:M-march=armv6*:} ${CFLAGS:M-mcpu=arm11*}
@@ -22,14 +22,18 @@
atomic_dec_32_cas.c atomic_dec_32_nv_cas.c \
atomic_inc_32_cas.c atomic_inc_32_nv_cas.c \
atomic_or_32_cas.c atomic_or_32_nv_cas.c \
- atomic_swap_32_cas.c membar_ops_nop.c \
- atomic_xor_32_cas.c atomic_xor_16_cas.c atomic_xor_8_cas.c \
+ atomic_swap_32_cas.c membar_ops_nop.c
+
+.if ${LIB} == "c"
+SRCS.atomic+= atomic_xor_32_cas.c atomic_xor_16_cas.c atomic_xor_8_cas.c \
atomic_sub_32_cas.c atomic_sub_16_cas.c atomic_sub_8_cas.c \
atomic_nand_32_cas.c atomic_nand_16_cas.c atomic_nand_8_cas.c \
atomic_or_16_cas.c atomic_or_8_cas.c \
atomic_and_16_cas.c atomic_and_8_cas.c \
atomic_add_16_cas.c atomic_add_8_cas.c \
atomic_swap_16_cas.c atomic_swap_8_cas.c
+.endif
+
.else
.for op in add and cas nand or xor
.for sz in 8 16 32 64
Home |
Main Index |
Thread Index |
Old Index