diff options
author | Lukas Larsson <[email protected]> | 2016-03-29 10:34:04 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2016-03-29 10:34:04 +0200 |
commit | cf21a6c586f7c6391e38f69e47f9305fefb8061a (patch) | |
tree | 428f08c92bb678a2fc2fd4c78603e66263fccdbe /erts | |
parent | 8d927059916f5dacc4c41f4881f6dc7bcc5d04fb (diff) | |
parent | da035ea5b65610bd9d19765609ed924c3fe0bdd1 (diff) | |
download | otp-cf21a6c586f7c6391e38f69e47f9305fefb8061a.tar.gz otp-cf21a6c586f7c6391e38f69e47f9305fefb8061a.tar.bz2 otp-cf21a6c586f7c6391e38f69e47f9305fefb8061a.zip |
Merge branch 'lukas/erts/low_write_freq_darwin/OTP-12345'
* lukas/erts/low_write_freq_darwin/OTP-12345:
erts: Fix LOW_WRITE section for non llvm os x compilation
Diffstat (limited to 'erts')
-rw-r--r-- | erts/emulator/beam/sys.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/erts/emulator/beam/sys.h b/erts/emulator/beam/sys.h index 03b9088adc..44735c0ec0 100644 --- a/erts/emulator/beam/sys.h +++ b/erts/emulator/beam/sys.h @@ -138,10 +138,10 @@ typedef ERTS_SYS_FD_TYPE ErtsSysFdType; #endif #if ERTS_AT_LEAST_GCC_VSN__(2, 96, 0) -#ifndef __llvm__ -# define ERTS_WRITE_UNLIKELY(X) X __attribute__ ((section ("ERTS_LOW_WRITE") )) -#else +#if (defined(__APPLE__) && defined(__MACH__)) || defined(__DARWIN__) # define ERTS_WRITE_UNLIKELY(X) X __attribute__ ((section ("__DATA,ERTS_LOW_WRITE") )) +#else +# define ERTS_WRITE_UNLIKELY(X) X __attribute__ ((section ("ERTS_LOW_WRITE") )) #endif #else # define ERTS_WRITE_UNLIKELY(X) X |