From cc7436746ae2bef66a8e8b525bf5d0be8c1a3741 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Thu, 4 Oct 2012 22:32:51 +0400 Subject: [PATCH] Do not include standard_ao_double_t.h if no double-CAS (gcc/arm) * src/atomic_ops/sysdeps/gcc/arm.h: Include standard_ao_double_t.h only if AO_ARM_HAVE_LDREXD. --- src/atomic_ops/sysdeps/gcc/arm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/atomic_ops/sysdeps/gcc/arm.h b/src/atomic_ops/sysdeps/gcc/arm.h index 8f364eb..a7a947c 100644 --- a/src/atomic_ops/sysdeps/gcc/arm.h +++ b/src/atomic_ops/sysdeps/gcc/arm.h @@ -82,8 +82,6 @@ #ifdef AO_ARM_HAVE_LDREX -#include "../standard_ao_double_t.h" - AO_INLINE void AO_nop_full(void) { @@ -315,6 +313,8 @@ AO_fetch_compare_and_swap(volatile AO_t *addr, AO_t old_val, AO_t new_val) #define AO_HAVE_fetch_compare_and_swap #ifdef AO_ARM_HAVE_LDREXD +# include "../standard_ao_double_t.h" + AO_INLINE int AO_compare_double_and_swap_double(volatile AO_double_t *addr, AO_t old_val1, AO_t old_val2, -- 2.7.4