Sat Feb 22 10:23:25 2014 UTC ()
Add the missing __sync_* ops to libc


(skrll)
diff -r1.11 -r1.12 src/common/lib/libc/arch/hppa/atomic/Makefile.inc

cvs diff -r1.11 -r1.12 src/common/lib/libc/arch/hppa/atomic/Makefile.inc (expand / switch to unified diff)

--- src/common/lib/libc/arch/hppa/atomic/Makefile.inc 2014/02/22 08:24:27 1.11
+++ src/common/lib/libc/arch/hppa/atomic/Makefile.inc 2014/02/22 10:23:24 1.12
@@ -1,27 +1,37 @@ @@ -1,27 +1,37 @@
1# $NetBSD: Makefile.inc,v 1.11 2014/02/22 08:24:27 skrll Exp $ 1# $NetBSD: Makefile.inc,v 1.12 2014/02/22 10:23:24 skrll Exp $
2 2
3.if defined(LIB) 3.if defined(LIB)
4 4
5. if (${LIB} == "kern" || ${LIB} == "c" || ${LIB} == "pthread" || \ 5. if (${LIB} == "kern" || ${LIB} == "c" || ${LIB} == "pthread" || \
6 ${LIB} == "rump") 6 ${LIB} == "rump")
7 7
8SRCS+= atomic_add_32_cas.c atomic_add_32_nv_cas.c \ 8SRCS+= atomic_add_32_cas.c atomic_add_32_nv_cas.c \
9 atomic_and_32_cas.c atomic_and_32_nv_cas.c \ 9 atomic_and_32_cas.c atomic_and_32_nv_cas.c \
10 atomic_dec_32_cas.c atomic_dec_32_nv_cas.c \ 10 atomic_dec_32_cas.c atomic_dec_32_nv_cas.c \
11 atomic_inc_32_cas.c atomic_inc_32_nv_cas.c \ 11 atomic_inc_32_cas.c atomic_inc_32_nv_cas.c \
12 atomic_or_32_cas.c atomic_or_32_nv_cas.c \ 12 atomic_or_32_cas.c atomic_or_32_nv_cas.c \
13 atomic_swap_32_cas.c \ 13 atomic_swap_32_cas.c \
14 membar_ops_nop.c 14 membar_ops_nop.c
15 15
16. endif 16. endif
17 17
18. if (${LIB} == "c" || ${LIB} == "pthread") 18. if (${LIB} == "c" || ${LIB} == "pthread")
19 19
20SRCS+= atomic_init_testset.c 20SRCS+= atomic_init_testset.c
21SRCS+= atomic_cas_up.S 21SRCS+= atomic_cas_up.S
22CPPFLAGS+= -D__HAVE_ASM_ATOMIC_CAS_UP 22CPPFLAGS+= -D__HAVE_ASM_ATOMIC_CAS_UP
23CPPFLAGS+= -D__HAVE_ASM_ATOMIC_CAS_16_UP 23CPPFLAGS+= -D__HAVE_ASM_ATOMIC_CAS_16_UP
24CPPFLAGS+= -D__HAVE_ASM_ATOMIC_CAS_8_UP 24CPPFLAGS+= -D__HAVE_ASM_ATOMIC_CAS_8_UP
25. endif 25. endif
26 26
 27.if defined(LIB) && ${LIB} == "c"
 28SRCS+= atomic_xor_32_cas.c atomic_xor_16_cas.c atomic_xor_8_cas.c \
 29 atomic_sub_32_cas.c atomic_sub_16_cas.c atomic_sub_8_cas.c \
 30 atomic_nand_32_cas.c atomic_nand_16_cas.c atomic_nand_8_cas.c \
 31 atomic_or_16_cas.c atomic_or_8_cas.c \
 32 atomic_and_16_cas.c atomic_and_8_cas.c \
 33 atomic_add_16_cas.c atomic_add_8_cas.c \
 34 atomic_swap_16_cas.c atomic_swap_8_cas.c \
 35 atomic_cas_32_cas.c atomic_cas_16_cas.c atomic_cas_8_cas.c
 36.endif
27.endif 37.endif