Tolerate spaces when parsing .type directives. The .type foo, @abi-omnipotent lines weren't being parsed correctly. This doesn't change the generated files, but some internal state (used in-progress work on perlasm SEH directives) wasn't quite right. Change-Id: Id6aec79281a59f45b2eb2aea9f1fb8806b4c483e Reviewed-on: https://boringssl-review.googlesource.com/c/34786 Reviewed-by: Adam Langley <agl@google.com>
diff --git a/crypto/perlasm/x86_64-xlate.pl b/crypto/perlasm/x86_64-xlate.pl index 78832fc..74fb32f 100755 --- a/crypto/perlasm/x86_64-xlate.pl +++ b/crypto/perlasm/x86_64-xlate.pl
@@ -732,7 +732,7 @@ $$line = $globals{$$line} if ($prefix); last; }; - /\.type/ && do { my ($sym,$type,$narg) = split(',',$$line); + /\.type/ && do { my ($sym,$type,$narg) = split(/\s*,\s*/,$$line); if ($type eq "\@function") { undef $current_function; $current_function->{name} = $sym;