From da4f2c5ea0a3b7f23e5f8fc097586f1b12bc1f9d Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 20 Jun 2017 22:19:51 -0400 Subject: [PATCH] checkstack: Continue to accumulate stack usage on misc instructions Signed-off-by: Kevin O'Connor --- scripts/checkstack.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/checkstack.py b/scripts/checkstack.py index e4cf45cc..060535bd 100755 --- a/scripts/checkstack.py +++ b/scripts/checkstack.py @@ -170,10 +170,10 @@ def main(): ref = m.group('ref') if '+' in ref: # Inter-function jump. - pass + continue elif insn.startswith('ld') or insn.startswith('st'): # memory access - pass + continue elif insn in ('rjmp', 'jmp', 'brne', 'brcs'): # Tail call cur.noteCall(insnaddr, calladdr, 0)