A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added platform for ns3 wifi example
[simgrid.git]
/
tools
/
stack-cleaner
/
clean-stack-filter
diff --git
a/tools/stack-cleaner/clean-stack-filter
b/tools/stack-cleaner/clean-stack-filter
index 64e79903c5bf786e6239721ceedaeb3a687149b7..8b15cd7c0f966a9df0ba9acddf90a762153ab63a 100755
(executable)
--- a/
tools/stack-cleaner/clean-stack-filter
+++ b/
tools/stack-cleaner/clean-stack-filter
@@
-15,7
+15,6
@@
our $lines = "";
# Size of the stack for this function:
our $size = 0;
# Size of the stack for this function:
our $size = 0;
-
# Counter for assigning unique ids to labels:
our $id=0;
# Counter for assigning unique ids to labels:
our $id=0;
@@
-52,14
+51,14
@@
while (<>) {
if ($scanproc) {
$lines = $lines . $_;
if (m/^[ \t]*.cfi_endproc$/) {
if ($scanproc) {
$lines = $lines . $_;
if (m/^[ \t]*.cfi_endproc$/) {
-
emit_code();
+ emit_code();
} elsif (m/^[ \t]*pushq/) {
} elsif (m/^[ \t]*pushq/) {
- $size += 8;
+ $size += 8;
} elsif (m/^[ \t]*subq[\t *]\$([0-9]*),[ \t]*%rsp$/) {
} elsif (m/^[ \t]*subq[\t *]\$([0-9]*),[ \t]*%rsp$/) {
-
my $val = $1;
-
$val = oct($val) if $val =~ /^0/;
-
$size += $val;
-
emit_code();
+ my $val = $1;
+ $val = oct($val) if $val =~ /^0/;
+ $size += $val;
+ emit_code();
}
} elsif (m/^[ \t]*.cfi_startproc$/) {
print $_;
}
} elsif (m/^[ \t]*.cfi_startproc$/) {
print $_;