ICU-13032 turn off the aliasing barrier for PNaCl which does not allow this specific inline assembler instruction

X-SVN-Rev: 39795
This commit is contained in:
Markus Scherer 2017-03-14 18:12:19 +00:00
parent c026fe4808
commit 9b50ba1c2e
2 changed files with 2 additions and 2 deletions
icu4c/source/common/unicode

View file

@ -26,7 +26,7 @@ U_NAMESPACE_BEGIN
*/
#ifdef U_ALIASING_BARRIER
// Use the predefined value.
#elif defined(__clang__) || defined(__GNUC__)
#elif (defined(__clang__) || defined(__GNUC__)) && U_PLATFORM != U_PF_BROWSER_NATIVE_CLIENT
# define U_ALIASING_BARRIER(ptr) asm volatile("" : : "rm"(ptr) : "memory")
#endif

View file

@ -150,7 +150,7 @@
# define U_PLATFORM U_PF_ANDROID
/* Android wchar_t support depends on the API level. */
# include <android/api-level.h>
#elif defined(__native_client__)
#elif defined(__pnacl__) || defined(__native_client__)
# define U_PLATFORM U_PF_BROWSER_NATIVE_CLIENT
#elif defined(linux) || defined(__linux__) || defined(__linux)
# define U_PLATFORM U_PF_LINUX