From: notaz Date: Sun, 8 Nov 2015 22:31:06 +0000 (+0200) Subject: translate: ignore attrs from skipped funcs X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=ia32rtools.git;a=commitdiff_plain;h=eadfb2b62ac7f81f1d8483e208b84e60031b448d translate: ignore attrs from skipped funcs --- 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;