Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libc/sync For now excempt i386 from __sync_lock_te...



details:   https://anonhg.NetBSD.org/src/rev/6b7d83f2aca1
branches:  trunk
changeset: 326796:6b7d83f2aca1
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Feb 18 10:27:46 2014 +0000

description:
For now excempt i386 from __sync_lock_test_and_set_8 and point to
PR lib/48601. Probably more architectures to follow.

diffstat:

 tests/lib/libc/sync/all_sync_ops_linkable.c |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r 43c9d58fba2b -r 6b7d83f2aca1 tests/lib/libc/sync/all_sync_ops_linkable.c
--- a/tests/lib/libc/sync/all_sync_ops_linkable.c       Tue Feb 18 10:16:55 2014 +0000
+++ b/tests/lib/libc/sync/all_sync_ops_linkable.c       Tue Feb 18 10:27:46 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: all_sync_ops_linkable.c,v 1.2 2014/02/17 21:38:04 joerg Exp $ */
+/* $NetBSD: all_sync_ops_linkable.c,v 1.3 2014/02/18 10:27:46 martin Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -124,8 +124,17 @@
        __sync_lock_test_and_set_2(&u16, 5);
        __sync_lock_test_and_set_4(&u32, 5);
 #ifdef __HAVE_ATOMIC64_OPS
+
+       /*
+        * See PR lib/48601:
+        * some architectures do not implement this, allow them to build
+        * anyway.
+        */
+#if !defined(__i386__)
        __sync_lock_test_and_set_8(&u64, 5);
 #endif
+
+#endif
 #ifndef __clang__
        __sync_nand_and_fetch(&u8, 5);
        __sync_nand_and_fetch_1(&u8, 5);



Home | Main Index | Thread Index | Old Index