diff options
author | Björn Gustavsson <[email protected]> | 2015-04-23 07:29:41 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2015-04-29 12:23:41 +0200 |
commit | 8c32dda686d2b964b08cc4614ba9c445039b3dd9 (patch) | |
tree | 8847f264c7c3c0acc73076d4dc80a1ff9a7022ee /lib/compiler/test/beam_validator_SUITE_data/unsafe_catch.S | |
parent | edef41b07fea925d13f0b4eb6d122793ca9c075d (diff) | |
download | otp-8c32dda686d2b964b08cc4614ba9c445039b3dd9.tar.gz otp-8c32dda686d2b964b08cc4614ba9c445039b3dd9.tar.bz2 otp-8c32dda686d2b964b08cc4614ba9c445039b3dd9.zip |
beam_validator: Stop validating the 'aligned' flag for binaries
The run-time system stopped paying attention the 'aligned' flag in bit
syntax construction and matching when bitstrings were introduced in
language.
The beam_asm compiler pass will crash if the 'aligned' flag is given
in bit syntax instructions.
beam_validator still validates the 'aligned' flag. Before
912fea0b712a (which removed the possibility to validate existing
BEAM files), the 'aligned' flag could actually be encountered
when validating a BEAM file.
Since the validation of 'aligned' no longer serves any useful
purpose, remove the validation code.
Diffstat (limited to 'lib/compiler/test/beam_validator_SUITE_data/unsafe_catch.S')
-rw-r--r-- | lib/compiler/test/beam_validator_SUITE_data/unsafe_catch.S | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/compiler/test/beam_validator_SUITE_data/unsafe_catch.S b/lib/compiler/test/beam_validator_SUITE_data/unsafe_catch.S index 500ac11377..f7d3f805b3 100644 --- a/lib/compiler/test/beam_validator_SUITE_data/unsafe_catch.S +++ b/lib/compiler/test/beam_validator_SUITE_data/unsafe_catch.S @@ -17,7 +17,7 @@ {bs_put_integer,{f,0}, {integer,8}, 1, - {field_flags,[aligned,unsigned,big]}, + {field_flags,[unsigned,big]}, {x,0}}. {move,{x,1},{y,0}}. {move,{x,2},{x,0}}. @@ -34,7 +34,7 @@ {bs_put_integer,{f,0}, {integer,16}, 1, - {field_flags,[aligned,unsigned,big]}, + {field_flags,[unsigned,big]}, {y,0}}. {move,{x,0},{y,0}}. {move,{x,1},{x,0}}. @@ -55,12 +55,12 @@ {bs_put_binary,{f,0}, {atom,all}, 8, - {field_flags,[aligned,unsigned,big]}, + {field_flags,[unsigned,big]}, {y,0}}. {bs_put_binary,{f,0}, {atom,all}, 8, - {field_flags,[aligned,unsigned,big]}, + {field_flags,[unsigned,big]}, {x,0}}. {move,{x,1},{x,0}}. {deallocate,2}. |