]> granicus.if.org Git - icu/commitdiff
ICU-13032 turn off the aliasing barrier for PNaCl which does not allow this specific...
authorMarkus Scherer <markus.icu@gmail.com>
Tue, 14 Mar 2017 18:12:19 +0000 (18:12 +0000)
committerMarkus Scherer <markus.icu@gmail.com>
Tue, 14 Mar 2017 18:12:19 +0000 (18:12 +0000)
X-SVN-Rev: 39795

icu4c/source/common/unicode/char16ptr.h
icu4c/source/common/unicode/platform.h

index 4035ce9bbbcbca8cec59ebfa66a45e365ea2e04f..27efa5da2d03a7db2fcaa741beb99507ff4c3c97 100644 (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
 
index b553b6878da06c1921745517473537b20f00253c..e6d449b57abcc825b034209a900f3fbc59c71ee8 100644 (file)
 #   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