On 2014-07-13 11:42:57 +0300, Martin Storsjö wrote:
> ---
>  gas-preprocessor.pl | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl
> index 86293d1..431270a 100755
> --- a/gas-preprocessor.pl
> +++ b/gas-preprocessor.pl
> @@ -877,7 +877,7 @@ sub handle_serialized_line {
>              } elsif (!is_arm_register($target)) {
>                  $call_targets{$target}++;
>              }
> -        } elsif ($line =~ /^\s*.h?word.*\b\d+[bf]\b/) {
> +        } elsif ($line =~ /^\s*.(?:h?word|short).*\b\d+[bf]\b/) {
>              while ($line =~ /\b(\d+)([bf])\b/g) {
>                  $line = handle_local_label($line, $1, $2);
>              }

you could move the 's/\.hword/.short/x' to the begin of 
handle_serialized_line and just handle .word and .short here

That replacement is uncoditional and doesn't need to happen after the 
main processing.

patch ok in either form. Other patches in the series are ok too

Janne
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to