]> granicus.if.org Git - libvpx/commitdiff
ads2gas: fix .size measurement
authorJohann <johannkoenig@google.com>
Wed, 23 Mar 2022 04:58:46 +0000 (13:58 +0900)
committerJohann <johannkoenig@google.com>
Wed, 23 Mar 2022 04:58:46 +0000 (13:58 +0900)
The distance between PROC and END is used to generate .size
information for debugging. When the leading underscore was
removed the pattern used to match the function name broke.

Change-Id: I90bf67d95ecdc2d214606e663773f88d2a2d6b9c

build/make/ads2gas.pl

index c17c4114a264751b9664893c9ac46af37ddf1c35..fcbd59b89bd45d9ce2fa2ef2458e19d123658a35 100755 (executable)
@@ -118,7 +118,8 @@ while (<STDIN>)
     # This makes them show up properly in debugging tools like gdb and valgrind.
     if (/\bPROC\b/) {
         my $proc;
-        /^_([\.0-9A-Z_a-z]\w+)\b/;
+        # Match the function name so it can be stored in $proc
+        /^([\.0-9A-Z_a-z]\w+)\b/;
         $proc = $1;
         push(@proc_stack, $proc) if ($proc);
         s/\bPROC\b/@ $&/;