From patchwork Sat Oct 14 20:35:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [5/8] Operate on the right variable instead of the implicit variable X-Patchwork-Submitter: =?utf-8?q?Martin_Storsj=C3=B6?= X-Patchwork-Id: 63941 Message-Id: <1508013322-19428-5-git-send-email-martin@martin.st> To: libav-devel@libav.org Date: Sat, 14 Oct 2017 23:35:19 +0300 From: Martin Storsjo List-Id: libav development Apparently, this hasn't caused any issues in practice. --- gas-preprocessor.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl index fe9c746..456ee24 100755 --- a/gas-preprocessor.pl +++ b/gas-preprocessor.pl @@ -943,7 +943,7 @@ sub handle_serialized_line { # Convert "mov pc, lr" into "bx lr", since the former only works # for switching from arm to thumb (and only in armv7), but not # from thumb to arm. - s/mov\s*pc\s*,\s*lr/bx lr/g; + $line =~ s/mov\s*pc\s*,\s*lr/bx lr/g; # Convert stmdb/ldmia/stmfd/ldmfd/ldm with only one register into a plain str/ldr with post-increment/decrement. # Wide thumb2 encoding requires at least two registers in register list while all other encodings support one register too.