aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2016-03-29 10:34:04 +0200
committerLukas Larsson <[email protected]>2016-03-29 10:34:04 +0200
commitcf21a6c586f7c6391e38f69e47f9305fefb8061a (patch)
tree428f08c92bb678a2fc2fd4c78603e66263fccdbe /erts/emulator
parent8d927059916f5dacc4c41f4881f6dc7bcc5d04fb (diff)
parentda035ea5b65610bd9d19765609ed924c3fe0bdd1 (diff)
downloadotp-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/emulator')
-rw-r--r--erts/emulator/beam/sys.h6
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