From a7cdae9ec1b29d9fed1d75ceabb633f5d10f3a68 Mon Sep 17 00:00:00 2001 From: ivmai Date: Fri, 22 Apr 2011 21:47:57 +0000 Subject: [PATCH] 2011-04-22 Ivan Maidanski * src/atomic_ops/sysdeps/gcc/ia64.h (AO_MASK): Add "volatile" for asm; remove redundant trailing ';'. --- ChangeLog | 5 +++++ src/atomic_ops/sysdeps/gcc/ia64.h | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 840b5fe..00f0afa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-04-22 Ivan Maidanski + + * src/atomic_ops/sysdeps/gcc/ia64.h (AO_MASK): Add "volatile" for + asm; remove redundant trailing ';'. + 2011-04-11 Ivan Maidanski (really Jim Meyering) * doc/README.txt: Remove doubled words in comments. diff --git a/src/atomic_ops/sysdeps/gcc/ia64.h b/src/atomic_ops/sysdeps/gcc/ia64.h index 37f2f6a..19ad36e 100644 --- a/src/atomic_ops/sysdeps/gcc/ia64.h +++ b/src/atomic_ops/sysdeps/gcc/ia64.h @@ -45,13 +45,13 @@ # define AO_IN_ADDR "1"(addr) # define AO_OUT_ADDR , "=r"(addr) # define AO_SWIZZLE "addp4 %1=0,%1;;\n" -# define AO_MASK(ptr) __asm__("zxt4 %1=%1": "=r"(ptr) : "0"(ptr)); +# define AO_MASK(ptr) __asm__ __volatile__("zxt4 %1=%1": "=r"(ptr) : "0"(ptr)) #else # define AO_LEN "8" # define AO_IN_ADDR "r"(addr) # define AO_OUT_ADDR # define AO_SWIZZLE -# define AO_MASK(ptr) +# define AO_MASK(ptr) /* empty */ #endif AO_INLINE void -- 2.40.0