aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/test
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2018-10-23 09:11:27 +0200
committerBjörn Gustavsson <[email protected]>2018-10-23 09:32:42 +0200
commit8f725574800d559a1d71e43ab5f21c0bcb6fa142 (patch)
treec1a818b216be71e29b78a881ad43ca48d77739cd /lib/compiler/test
parent9ebb7a3b087423774ee45becaa4305a7af37adf6 (diff)
downloadotp-8f725574800d559a1d71e43ab5f21c0bcb6fa142.tar.gz
otp-8f725574800d559a1d71e43ab5f21c0bcb6fa142.tar.bz2
otp-8f725574800d559a1d71e43ab5f21c0bcb6fa142.zip
Add a diffable option for the compiler
Add the `diffable` option to produce a more diff-friendly output in a .S file. In a diffable .S file, label numbers starts from 1 in each function and local function calls use function names instead of labels. scripts/diffable produces diff-friendly files but only for a hard-coded sub set of files in OTP. Having the option directly in the compiler makes is easier to diff the BEAM code for arbitrary source modules.
Diffstat (limited to 'lib/compiler/test')
-rw-r--r--lib/compiler/test/compile_SUITE.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/compiler/test/compile_SUITE.erl b/lib/compiler/test/compile_SUITE.erl
index 5656743c76..8d8bbe9543 100644
--- a/lib/compiler/test/compile_SUITE.erl
+++ b/lib/compiler/test/compile_SUITE.erl
@@ -396,6 +396,7 @@ do_file_listings(DataDir, PrivDir, [File|Files]) ->
do_listing(Simple, TargetDir, dclean, ".clean"),
do_listing(Simple, TargetDir, dpeep, ".peep"),
do_listing(Simple, TargetDir, dopt, ".optimize"),
+ do_listing(Simple, TargetDir, diffable, ".S"),
%% First clean up.
Listings = filename:join(PrivDir, listings),