From: Markus Scherer Date: Mon, 6 Mar 2017 22:47:58 +0000 (+0000) Subject: ICU-12992 new version of the aliasing barrier X-Git-Tag: release-59-rc~119^2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=85e291a4ec2ec49ce34b892c13d679a2c44bc9f9;p=icu ICU-12992 new version of the aliasing barrier X-SVN-Rev: 39739 --- diff --git a/icu4c/source/common/unicode/char16ptr.h b/icu4c/source/common/unicode/char16ptr.h index 780a1502738..d484cfdf8ac 100644 --- a/icu4c/source/common/unicode/char16ptr.h +++ b/icu4c/source/common/unicode/char16ptr.h @@ -25,8 +25,8 @@ U_NAMESPACE_BEGIN */ #ifdef U_ALIASING_BARRIER // Use the predefined value. -#elif 0 // TODO: only some versions of clang?? defined(__clang__) || defined(__GNUC__) -# define U_ALIASING_BARRIER(ptr) asm volatile("" : "+rm"(ptr)) +#elif defined(__clang__) || defined(__GNUC__) +# define U_ALIASING_BARRIER(ptr) asm volatile("" : : "rm"(ptr) : "memory") #endif /**