From patchwork Sat Oct 14 20:35:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [7/8] Correctly fix labels for armasm even if the lines start with leading space X-Patchwork-Submitter: =?utf-8?q?Martin_Storsj=C3=B6?= X-Patchwork-Id: 63943 Message-Id: <1508013322-19428-7-git-send-email-martin@martin.st> To: libav-devel@libav.org Date: Sat, 14 Oct 2017 23:35:21 +0300 From: Martin Storsjo List-Id: libav development --- gas-preprocessor.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl index 63b0ab3..9bcdbac 100755 --- a/gas-preprocessor.pl +++ b/gas-preprocessor.pl @@ -853,7 +853,7 @@ sub handle_serialized_line { $last_temp_labels{$num} = $name; } - if ($line =~ s/^(\w+):/$1/) { + if ($line =~ s/^\s*(\w+):/$1/) { # Skip labels that have already been declared with a PROC, # labels must not be declared multiple times. return if (defined $labels_seen{$1});