Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/common/lib/libc/atomic Add missing __sync_lock_test_and_set_...
details: https://anonhg.NetBSD.org/src/rev/11061272ea32
branches: trunk
changeset: 326883:11061272ea32
user: martin <martin%NetBSD.org@localhost>
date: Fri Feb 21 10:27:34 2014 +0000
description:
Add missing __sync_lock_test_and_set_* aliases for PR lib/48601
diffstat:
common/lib/libc/atomic/atomic_swap_32_cas.c | 3 ++-
common/lib/libc/atomic/atomic_swap_64_cas.c | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r 4dc3d2f7ac58 -r 11061272ea32 common/lib/libc/atomic/atomic_swap_32_cas.c
--- a/common/lib/libc/atomic/atomic_swap_32_cas.c Fri Feb 21 10:26:25 2014 +0000
+++ b/common/lib/libc/atomic/atomic_swap_32_cas.c Fri Feb 21 10:27:34 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic_swap_32_cas.c,v 1.4 2008/04/28 20:22:53 martin Exp $ */
+/* $NetBSD: atomic_swap_32_cas.c,v 1.5 2014/02/21 10:27:34 martin Exp $ */
/*-
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -50,6 +50,7 @@
#undef atomic_swap_uint
atomic_op_alias(atomic_swap_uint,_atomic_swap_32)
__strong_alias(_atomic_swap_uint,_atomic_swap_32)
+__strong_alias(__sync_lock_test_and_set_4,_atomic_swap_32)
#if !defined(_LP64)
#undef atomic_swap_ulong
atomic_op_alias(atomic_swap_ulong,_atomic_swap_32)
diff -r 4dc3d2f7ac58 -r 11061272ea32 common/lib/libc/atomic/atomic_swap_64_cas.c
--- a/common/lib/libc/atomic/atomic_swap_64_cas.c Fri Feb 21 10:26:25 2014 +0000
+++ b/common/lib/libc/atomic/atomic_swap_64_cas.c Fri Feb 21 10:27:34 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic_swap_64_cas.c,v 1.5 2008/04/28 20:22:53 martin Exp $ */
+/* $NetBSD: atomic_swap_64_cas.c,v 1.6 2014/02/21 10:27:34 martin Exp $ */
/*-
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -53,6 +53,7 @@
#undef atomic_swap_ulong
atomic_op_alias(atomic_swap_ulong,_atomic_swap_64)
__strong_alias(_atomic_swap_ulong,_atomic_swap_64)
+__strong_alias(__sync_lock_test_and_set_8,_atomic_swap_64)
#undef atomic_swap_ptr
atomic_op_alias(atomic_swap_ptr,_atomic_swap_64)
__strong_alias(_atomic_swap_ptr,_atomic_swap_64)
Home |
Main Index |
Thread Index |
Old Index