diff options
author | Sverker Eriksson <[email protected]> | 2018-01-03 17:11:49 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2018-01-03 17:11:49 +0100 |
commit | f9a0bac8f708a5cf769860ef2ee8af0591c5dbaf (patch) | |
tree | 4622350b2a0ca74ff72f78e31a02a0fb6954935e /erts/emulator/hipe/hipe_mkliterals.c | |
parent | 3d124b9ea557fd26ca7a33276b84c72d9e72044e (diff) | |
parent | 93042b54da6a576b187bfb7b2222fc8a5a4d4f12 (diff) | |
download | otp-f9a0bac8f708a5cf769860ef2ee8af0591c5dbaf.tar.gz otp-f9a0bac8f708a5cf769860ef2ee8af0591c5dbaf.tar.bz2 otp-f9a0bac8f708a5cf769860ef2ee8af0591c5dbaf.zip |
Merge branch 'maint'
Diffstat (limited to 'erts/emulator/hipe/hipe_mkliterals.c')
-rw-r--r-- | erts/emulator/hipe/hipe_mkliterals.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/erts/emulator/hipe/hipe_mkliterals.c b/erts/emulator/hipe/hipe_mkliterals.c index d115dfaeea..3323e8640b 100644 --- a/erts/emulator/hipe/hipe_mkliterals.c +++ b/erts/emulator/hipe/hipe_mkliterals.c @@ -540,6 +540,11 @@ static const struct rts_param rts_params[] = { static unsigned int literals_crc; static unsigned int system_crc; +/* + * Change this version value to detect incompatible changes in primop interface. + */ +#define PRIMOP_ABI_VSN 0x090300 /* erts-9.3 */ + static void compute_crc(void) { unsigned int crc_value; @@ -555,6 +560,8 @@ static void compute_crc(void) for (i = 0; i < NR_PARAMS; ++i) if (rts_params[i].is_defined) crc_value = crc_update_int(crc_value, &rts_params[i].value); + + crc_value ^= PRIMOP_ABI_VSN; crc_value &= 0x07FFFFFF; system_crc = crc_value; } |