aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/checkstack.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/checkstack.py b/scripts/checkstack.py
index 5d9b0bf..255768a 100755
--- a/scripts/checkstack.py
+++ b/scripts/checkstack.py
@@ -153,6 +153,11 @@ def main():
if '%esp' in insn or insn.startswith('leal'):
# Still part of initial header
continue
+ if not stackusage and (
+ insn.startswith('test') or insn.startswith('cmp')
+ or insn.startswith('j')):
+ # There may be conditional checks prior to stack frame
+ continue
cur.basic_stack_usage = stackusage
atstart = 0