From b571411ab59c0350ba469847d392531396da2509 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Tue, 18 Sep 2012 17:41:18 +0400 Subject: [PATCH] Add TODO item to gcc/alpha.h --- src/atomic_ops/sysdeps/gcc/alpha.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/atomic_ops/sysdeps/gcc/alpha.h b/src/atomic_ops/sysdeps/gcc/alpha.h index 016e4d1..95d4c32 100644 --- a/src/atomic_ops/sysdeps/gcc/alpha.h +++ b/src/atomic_ops/sysdeps/gcc/alpha.h @@ -38,8 +38,9 @@ AO_nop_write(void) /* mb should be used for AO_nop_read(). That's the default. */ +/* TODO: implement AO_fetch_and_add explicitly. */ + /* We believe that ldq_l ... stq_c does not imply any memory barrier. */ -/* We should add an explicit fetch_and_add definition. */ AO_INLINE int AO_compare_and_swap(volatile AO_t *addr, AO_t old, AO_t new_val) -- 2.7.4