This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit ea7079074c57d41f25784b2f53314bc08f85fed9
Author:     Martin Storsjö <[email protected]>
AuthorDate: Tue Apr 7 12:08:22 2026 +0300
Commit:     Martin Storsjö <[email protected]>
CommitDate: Wed Apr 29 13:49:27 2026 +0300

    tools/indent_arm_assembly: Don't indent "foo .req bar" lines like an 
instruction
    
    These are used a bit in our arm assembly, while they're used much
    less in our aarch64 assembly.
---
 tools/indent_arm_assembly.pl | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/tools/indent_arm_assembly.pl b/tools/indent_arm_assembly.pl
index 0c85ff3ac4..8bca145976 100755
--- a/tools/indent_arm_assembly.pl
+++ b/tools/indent_arm_assembly.pl
@@ -172,6 +172,7 @@ while (<$in>) {
 
         my $orig_operand_indent = length($label) + length($indent) +
                                   length($instr) + length($origspace);
+        my $orig_indent = $indent;
 
         if ($indent_operands) {
             $rest = columns($rest);
@@ -215,8 +216,16 @@ while (<$in>) {
             $size -= $instr_end;
         }
         my $operand_space = " ";
-        if ($size > 0) {
-            $operand_space = spaces($size);
+        if ($rest =~ /^\.req/i) {
+            # A line like "alias .req reg" shouldn't necessarily be
+            # reindented like "     alias          .req reg"; keep the original
+            # indentation instead.
+            $indent = $orig_indent;
+            $operand_space = $origspace;
+        } else {
+            if ($size > 0) {
+                $operand_space = spaces($size);
+            }
         }
 
         # Lowercase register names. Only apply this on lines up to

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to