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 unused memory model argument to m...



details:   https://anonhg.NetBSD.org/src/rev/da9c801bfe26
branches:  trunk
changeset: 330349:da9c801bfe26
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sun Jul 06 01:19:45 2014 +0000

description:
Add unused memory model argument to make GCC happy.

diffstat:

 common/lib/libc/atomic/atomic_load.c  |  8 ++++----
 common/lib/libc/atomic/atomic_store.c |  9 +++++----
 2 files changed, 9 insertions(+), 8 deletions(-)

diffs (61 lines):

diff -r 7c16f681d1c3 -r da9c801bfe26 common/lib/libc/atomic/atomic_load.c
--- a/common/lib/libc/atomic/atomic_load.c      Sun Jul 06 00:21:24 2014 +0000
+++ b/common/lib/libc/atomic/atomic_load.c      Sun Jul 06 01:19:45 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atomic_load.c,v 1.1 2014/07/05 20:44:46 joerg Exp $    */
+/*     $NetBSD: atomic_load.c,v 1.2 2014/07/06 01:19:45 joerg Exp $    */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: atomic_load.c,v 1.1 2014/07/05 20:44:46 joerg Exp $");
+__RCSID("$NetBSD: atomic_load.c,v 1.2 2014/07/06 01:19:45 joerg Exp $");
 
 #include "atomic_op_namespace.h"
 
@@ -35,9 +35,9 @@
 #include <sys/atomic.h>
 
 #define atomic_load_n(n,b) \
-uint ## b ## _t __atomic_load_ ## n(volatile uint ## b ## _t *); \
+uint ## b ## _t __atomic_load_ ## n(volatile uint ## b ## _t *, int); \
 uint ## b ## _t \
-__atomic_load_ ## n(volatile uint ## b ## _t *ptr) \
+__atomic_load_ ## n(volatile uint ## b ## _t *ptr, int memmodel) \
 { \
        uint## b ##_t val; \
        membar_enter(); \
diff -r 7c16f681d1c3 -r da9c801bfe26 common/lib/libc/atomic/atomic_store.c
--- a/common/lib/libc/atomic/atomic_store.c     Sun Jul 06 00:21:24 2014 +0000
+++ b/common/lib/libc/atomic/atomic_store.c     Sun Jul 06 01:19:45 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atomic_store.c,v 1.1 2014/07/05 20:44:46 joerg Exp $   */
+/*     $NetBSD: atomic_store.c,v 1.2 2014/07/06 01:19:45 joerg Exp $   */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: atomic_store.c,v 1.1 2014/07/05 20:44:46 joerg Exp $");
+__RCSID("$NetBSD: atomic_store.c,v 1.2 2014/07/06 01:19:45 joerg Exp $");
 
 #include "atomic_op_namespace.h"
 
@@ -35,9 +35,10 @@
 #include <sys/atomic.h>
 
 #define atomic_store_n(n,b) \
-void __atomic_store_ ## n(volatile uint ## b ## _t *, uint ## b ## _t); \
+void __atomic_store_ ## n(volatile uint ## b ## _t *, uint ## b ## _t, int); \
 void \
-__atomic_store_ ## n(volatile uint ## b ## _t *ptr, uint ## b ## _t val) \
+__atomic_store_ ## n(volatile uint ## b ## _t *ptr, uint ## b ## _t val, \
+                     int memmodel) \
 { \
        membar_enter(); \
        *ptr = val; \



Home | Main Index | Thread Index | Old Index