Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> --- linearize.c | 5 +---- test-linearize.c | 2 ++ test-unssa.c | 2 ++ 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/linearize.c b/linearize.c index 65a4baf96..4970771bc 100644 --- a/linearize.c +++ b/linearize.c @@ -2220,11 +2220,8 @@ static struct entrypoint *linearize_fn(struct symbol *sym, struct symbol *base_t add_one_insn(ep, insn); } - if (fdump_linearize) { - if (fdump_linearize == 2) - return ep; + if (fdump_linearize) show_entry(ep); - } /* * Do trivial flow simplification - branches to diff --git a/test-linearize.c b/test-linearize.c index fe0673bef..284526781 100644 --- a/test-linearize.c +++ b/test-linearize.c @@ -47,6 +47,8 @@ static void clean_up_symbols(struct symbol_list *list) expand_symbol(sym); ep = linearize_symbol(sym); + if (fdump_linearize == 2) + continue; if (ep) show_entry(ep); } END_FOR_EACH_PTR(sym); diff --git a/test-unssa.c b/test-unssa.c index 240d99601..ec5c93015 100644 --- a/test-unssa.c +++ b/test-unssa.c @@ -62,6 +62,8 @@ static int compile(struct symbol_list *list) struct entrypoint *ep; expand_symbol(sym); ep = linearize_symbol(sym); + if (fdump_linearize == 2) + continue; if (ep) output_fn(ep); else -- 2.14.0 -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html