diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2020-06-07 16:48:47 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2020-06-07 16:53:17 -0400 |
commit | 527d49a18979bc04992af5864034af57495a2f0b (patch) | |
tree | cc4d4a404bf0e0f5840f7cb217c8a2c8ad0fcf61 | |
parent | 8896f35294649975c1df22a8b57db4333cc56091 (diff) | |
download | bfs-527d49a18979bc04992af5864034af57495a2f0b.tar.xz |
opt: Dump the command line before optimizing with -D opt
-rw-r--r-- | opt.c | 2 | ||||
-rw-r--r-- | parse.c | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -984,6 +984,8 @@ static struct expr *optimize_expr(struct opt_state *state, struct expr *expr) { } int optimize_cmdline(struct cmdline *cmdline) { + dump_cmdline(cmdline, DEBUG_OPT); + struct opt_facts facts_when_impure; set_facts_impossible(&facts_when_impure); @@ -3467,12 +3467,12 @@ void dump_cmdline(const struct cmdline *cmdline, enum debug_flags flag) { if (flag == DEBUG_RATES) { if (cmdline->exclude != &expr_false) { - cfprintf(cerr, "${red}-exclude${rs} %pE ", cmdline->exclude); + cfprintf(cerr, "(${red}-exclude${rs} %pE) ", cmdline->exclude); } cfprintf(cerr, "%pE", cmdline->expr); } else { if (cmdline->exclude != &expr_false) { - cfprintf(cerr, "${red}-exclude${rs} %pe ", cmdline->exclude); + cfprintf(cerr, "(${red}-exclude${rs} %pe) ", cmdline->exclude); } cfprintf(cerr, "%pe", cmdline->expr); } |