aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2017-08-30 10:49:04 +0200
committerGitHub <[email protected]>2017-08-30 10:49:04 +0200
commit5c0f0d7812f03b763ff12bec935859210a404055 (patch)
tree193ae44970b347301de6a670e0152ccb176d39f4 /erts/emulator
parente79780e40c9bab4266df8a2bb5a2cf4d2bf162c2 (diff)
parentc49cdbe34e979dabcda56a05e4a104a9693fc56c (diff)
downloadotp-5c0f0d7812f03b763ff12bec935859210a404055.tar.gz
otp-5c0f0d7812f03b763ff12bec935859210a404055.tar.bz2
otp-5c0f0d7812f03b763ff12bec935859210a404055.zip
Merge pull request #1548 from bjorng/bjorn/erts/remove-float-constant-bc
Remove backward compatibility support for float literals OTP-14575
Diffstat (limited to 'erts/emulator')
-rw-r--r--erts/emulator/beam/beam_load.c26
1 files changed, 3 insertions, 23 deletions
diff --git a/erts/emulator/beam/beam_load.c b/erts/emulator/beam/beam_load.c
index 9ff32e30f3..cc3219989e 100644
--- a/erts/emulator/beam/beam_load.c
+++ b/erts/emulator/beam/beam_load.c
@@ -2034,30 +2034,10 @@ load_code(LoaderState* stp)
case 0:
/* Floating point number.
* Not generated by the compiler in R16B and later.
+ * (The literal pool is used instead.)
*/
- {
- Eterm* hp;
-#if !defined(ARCH_64)
- Uint high, low;
-# endif
- last_op->a[arg].val = new_literal(stp, &hp,
- FLOAT_SIZE_OBJECT);
- hp[0] = HEADER_FLONUM;
- last_op->a[arg].type = TAG_q;
-#if defined(ARCH_64)
- GetInt(stp, 8, hp[1]);
-# else
- GetInt(stp, 4, high);
- GetInt(stp, 4, low);
- if (must_swap_floats) {
- Uint t = high;
- high = low;
- low = t;
- }
- hp[1] = high;
- hp[2] = low;
-# endif
- }
+ LoadError0(stp, "please re-compile this module with an "
+ ERLANG_OTP_RELEASE " compiler");
break;
case 1: /* List. */
if (arg+1 != arity) {