aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2016-03-16 17:34:05 +0100
committerLukas Larsson <[email protected]>2016-03-16 17:34:05 +0100
commitda035ea5b65610bd9d19765609ed924c3fe0bdd1 (patch)
tree1a09779941f8f5321cc2bf0f7ed72c91bb027124
parentae61174845dde2ddda537d57ace5b1124b7f4191 (diff)
downloadotp-da035ea5b65610bd9d19765609ed924c3fe0bdd1.tar.gz
otp-da035ea5b65610bd9d19765609ed924c3fe0bdd1.tar.bz2
otp-da035ea5b65610bd9d19765609ed924c3fe0bdd1.zip
erts: Fix LOW_WRITE section for non llvm os x compilation
-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