Module: gas-preprocessor
Branch: master
Commit: 9897346c3803593cb25586a87306ecd89994c831

Author:    Martin Storsjo <[email protected]>
Committer: Martin Storsjo <[email protected]>
Date:      Mon Jul 22 12:14:21 2013 +0300

When fixing .unreq, don't print one instance immediately

When the .unreq is part of a .rept, both of them need to go along
with each other so that they end up at the right place in the repeated
output.

---

 gas-preprocessor.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl
index 755d9fd..b7c51c0 100755
--- a/gas-preprocessor.pl
+++ b/gas-preprocessor.pl
@@ -471,7 +471,7 @@ foreach my $line (@pass1_lines) {
     if ($fix_unreq) {
         if ($line =~ /\.unreq\s+(.*)/) {
             $line = ".unreq " . lc($1) . "\n";
-            print ASMFILE ".unreq " . uc($1) . "\n";
+            $line .= ".unreq " . uc($1) . "\n";
         }
     }
 

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

Reply via email to