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 Provide prototypes to fix build with ...



details:   https://anonhg.NetBSD.org/src/rev/d330c35a1fa1
branches:  trunk
changeset: 803591:d330c35a1fa1
user:      joerg <joerg%NetBSD.org@localhost>
date:      Tue Nov 04 19:56:44 2014 +0000

description:
Provide prototypes to fix build with clang.

diffstat:

 common/lib/libc/atomic/atomic_c11_compare_exchange_cas_16.c |  5 ++++-
 common/lib/libc/atomic/atomic_c11_compare_exchange_cas_32.c |  5 ++++-
 common/lib/libc/atomic/atomic_c11_compare_exchange_cas_8.c  |  5 ++++-
 3 files changed, 12 insertions(+), 3 deletions(-)

diffs (57 lines):

diff -r 0a999513b817 -r d330c35a1fa1 common/lib/libc/atomic/atomic_c11_compare_exchange_cas_16.c
--- a/common/lib/libc/atomic/atomic_c11_compare_exchange_cas_16.c       Tue Nov 04 19:22:50 2014 +0000
+++ b/common/lib/libc/atomic/atomic_c11_compare_exchange_cas_16.c       Tue Nov 04 19:56:44 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atomic_c11_compare_exchange_cas_16.c,v 1.1 2014/10/12 17:51:47 martin Exp $    */
+/*     $NetBSD: atomic_c11_compare_exchange_cas_16.c,v 1.2 2014/11/04 19:56:44 joerg Exp $     */
 
 /*-
  * Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -36,6 +36,9 @@
 #endif
 #include <sys/atomic.h>
 
+bool __atomic_compare_exchange_2(volatile uint16_t *, uint16_t *, uint16_t,
+    bool, int, int);
+
 bool
 __atomic_compare_exchange_2(volatile uint16_t *mem,
     uint16_t *expected, uint16_t desired,
diff -r 0a999513b817 -r d330c35a1fa1 common/lib/libc/atomic/atomic_c11_compare_exchange_cas_32.c
--- a/common/lib/libc/atomic/atomic_c11_compare_exchange_cas_32.c       Tue Nov 04 19:22:50 2014 +0000
+++ b/common/lib/libc/atomic/atomic_c11_compare_exchange_cas_32.c       Tue Nov 04 19:56:44 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atomic_c11_compare_exchange_cas_32.c,v 1.1 2014/10/12 17:51:47 martin Exp $    */
+/*     $NetBSD: atomic_c11_compare_exchange_cas_32.c,v 1.2 2014/11/04 19:56:44 joerg Exp $     */
 
 /*-
  * Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -36,6 +36,9 @@
 #endif
 #include <sys/atomic.h>
 
+bool __atomic_compare_exchange_4(volatile uint32_t *, uint32_t *, uint32_t,
+    bool, int, int);
+
 bool
 __atomic_compare_exchange_4(volatile uint32_t *mem,
     uint32_t *expected, uint32_t desired,
diff -r 0a999513b817 -r d330c35a1fa1 common/lib/libc/atomic/atomic_c11_compare_exchange_cas_8.c
--- a/common/lib/libc/atomic/atomic_c11_compare_exchange_cas_8.c        Tue Nov 04 19:22:50 2014 +0000
+++ b/common/lib/libc/atomic/atomic_c11_compare_exchange_cas_8.c        Tue Nov 04 19:56:44 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atomic_c11_compare_exchange_cas_8.c,v 1.1 2014/10/12 17:51:47 martin Exp $     */
+/*     $NetBSD: atomic_c11_compare_exchange_cas_8.c,v 1.2 2014/11/04 19:56:44 joerg Exp $      */
 
 /*-
  * Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -36,6 +36,9 @@
 #endif
 #include <sys/atomic.h>
 
+bool __atomic_compare_exchange_1(volatile uint8_t *, uint8_t *, uint8_t,
+    bool, int, int);
+
 bool
 __atomic_compare_exchange_1(volatile uint8_t *mem,
     uint8_t *expected, uint8_t desired,



Home | Main Index | Thread Index | Old Index