From cbb7cc9bf6d49ba922010f77c06cbea23f8e39de Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 7 Jun 2016 19:16:31 -0400 Subject: At -O3, replace command lines with no actions by -false. --- parse.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/parse.c b/parse.c index 30ee491..4f86647 100644 --- a/parse.c +++ b/parse.c @@ -1616,6 +1616,11 @@ struct cmdline *parse_cmdline(int argc, char *argv[]) { } } + if (cmdline->optlevel >= 3 && cmdline->expr->pure) { + free_expr(cmdline->expr); + cmdline->expr = &expr_false; + } + if (cmdline->nroots == 0) { if (!cmdline_add_root(cmdline, ".")) { goto fail; -- cgit v1.2.3