mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 00:43:32 +00:00
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:
parent
c026fe4808
commit
9b50ba1c2e
2 changed files with 2 additions and 2 deletions
icu4c/source/common/unicode
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue