File 2362-Remove-support-for-compiling-for-R16-and-R17.patch of Package erlang

From e8403b600d891a105855eb61f1c0cbf5179f3f80 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= <bjorn@erlang.org>
Date: Fri, 24 Jan 2020 11:44:33 +0100
Subject: [PATCH 2/6] Remove support for compiling for R16 and R17

---
 lib/compiler/src/compile.erl        | 4 ----
 lib/compiler/test/compile_SUITE.erl | 4 ----
 2 files changed, 8 deletions(-)

diff --git a/lib/compiler/src/compile.erl b/lib/compiler/src/compile.erl
index 97ae80df81..643c164631 100644
--- a/lib/compiler/src/compile.erl
+++ b/lib/compiler/src/compile.erl
@@ -254,10 +254,6 @@ expand_opt(no_bsm4, Os) ->
 expand_opt(no_bsm3, Os) ->
     %% The new bsm pass requires bsm3 instructions.
     [no_bsm3,no_bsm_opt|Os];
-expand_opt(r16, Os) ->
-    expand_opt_before_21(Os);
-expand_opt(r17, Os) ->
-    expand_opt_before_21(Os);
 expand_opt(r18, Os) ->
     expand_opt_before_21(Os);
 expand_opt(r19, Os) ->
diff --git a/lib/compiler/test/compile_SUITE.erl b/lib/compiler/test/compile_SUITE.erl
index a0f1e02337..c634c5841a 100644
--- a/lib/compiler/test/compile_SUITE.erl
+++ b/lib/compiler/test/compile_SUITE.erl
@@ -1398,14 +1398,10 @@ bc_options(Config) ->
                      no_ssa_opt_record,no_line_info]},
 
          {153, big, [no_put_tuple2,no_get_hd_tl, no_ssa_opt_record]},
-         {153, big, [r16]},
-         {153, big, [r17]},
          {153, big, [r18]},
          {153, big, [r19]},
-         {153, small_float, [r16]},
          {153, small_float, []},
 
-         {158, small_maps, [r17]},
          {158, small_maps, [r18]},
          {158, small_maps, [r19]},
          {158, small_maps, [r20]},
-- 
2.16.4

openSUSE Build Service is sponsored by