[libav-commits] Track arm/thumb state changes

Mans Rullgard git at libav.org
Fri Oct 19 21:32:42 CEST 2012


Module: libav.org
Branch: master
Commit: 5dc717ea133b93949cca56da217bfcecd097fc77

Author:    Mans Rullgard <mans at mansr.com>
Committer: Mans Rullgard <mans at mansr.com>
Date:      Tue Oct  2 21:48:38 2012 +0100

Track arm/thumb state changes

---

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

diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl
index 1b1d28c..32b8b72 100755
--- a/gas-preprocessor.pl
+++ b/gas-preprocessor.pl
@@ -377,6 +377,8 @@ my $rept_lines;
 my %literal_labels;     # for ldr <reg>, =<expr>
 my $literal_num = 0;
 
+my $thumb = 0;
+
 my $in_irp = 0;
 my @irp_args;
 my $irp_param;
@@ -396,6 +398,9 @@ foreach my $line (@pass1_lines) {
         push(@sections, $line);
     }
 
+    $thumb = 1 if $line =~ /\.code\s+16|\.thumb/;
+    $thumb = 0 if $line =~ /\.code\s+32|\.arm/;
+
     # handle ldr <reg>, =<expr>
     if ($line =~ /(.*)\s*ldr([\w\s\d]+)\s*,\s*=(.*)/) {
         my $label = $literal_labels{$3};



More information about the libav-commits mailing list