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
# 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/@ $&/;