From eadfb2b62ac7f81f1d8483e208b84e60031b448d Mon Sep 17 00:00:00 2001 From: notaz Date: Mon, 9 Nov 2015 00:31:06 +0200 Subject: [PATCH] translate: ignore attrs from skipped funcs --- tools/translate.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tools/translate.c b/tools/translate.c index 7da3b54..1ae5c27 100644 --- a/tools/translate.c +++ b/tools/translate.c @@ -9725,16 +9725,18 @@ parse_words: continue; goto parse_words; // lame } - if (IS_START(p, "; sctproto:")) { - sctproto = strdup(p + 11); - } else if (IS_START(p, "; sctend")) { end = 1; if (!pending_endp) break; } + else if (g_skip_func) + /* ignore remaining attrs */; + else if (IS_START(p, "; sctproto:")) { + sctproto = strdup(p + 11); + } else if (IS_START(p, "; sctskip_start")) { - if (in_func && !g_skip_func) { + if (in_func) { if (!skip_code) { ops[pi].op = OPP_ABORT; ops[pi].asmln = asmln; -- 2.39.5