diff options
author | Peer Stritzinger <[email protected]> | 2017-06-26 19:18:10 +0200 |
---|---|---|
committer | Sebastien Merle <[email protected]> | 2018-01-24 17:08:50 +0100 |
commit | cd1253b9d13b7f0e7cdae995d35bf10c3d537053 (patch) | |
tree | a66b56287358f377e052c93a4330dc5d8f1cdf9c /erts/emulator/beam/erl_msacc.h | |
parent | b06e5e8c70f4447cbd410094254cc45f95ff241d (diff) | |
download | otp-cd1253b9d13b7f0e7cdae995d35bf10c3d537053.tar.gz otp-cd1253b9d13b7f0e7cdae995d35bf10c3d537053.tar.bz2 otp-cd1253b9d13b7f0e7cdae995d35bf10c3d537053.zip |
Make sure ERTS_WRITE_UNLIKELY section is also set on declaration
Otherwise on targets which have small data area with short addressing
like on PowerPC ther will be linking errors due to the mismatch of
declaration/usage and definition.
Diffstat (limited to 'erts/emulator/beam/erl_msacc.h')
-rw-r--r-- | erts/emulator/beam/erl_msacc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/erl_msacc.h b/erts/emulator/beam/erl_msacc.h index 2588dec903..895b1ae319 100644 --- a/erts/emulator/beam/erl_msacc.h +++ b/erts/emulator/beam/erl_msacc.h @@ -159,12 +159,12 @@ struct erl_msacc_t_ { #ifdef ERTS_ENABLE_MSACC -extern erts_tsd_key_t erts_msacc_key; +extern erts_tsd_key_t ERTS_WRITE_UNLIKELY(erts_msacc_key); #ifdef ERTS_MSACC_ALWAYS_ON #define erts_msacc_enabled 1 #else -extern int erts_msacc_enabled; +extern int ERTS_WRITE_UNLIKELY(erts_msacc_enabled); #endif #define ERTS_MSACC_TSD_GET() erts_tsd_get(erts_msacc_key) |