summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2016-06-09 18:37:58 -0400
committerTavian Barnes <tavianator@tavianator.com>2016-06-09 18:37:58 -0400
commit88cc26afec80dae40d8e08de0e6db6c308e64f79 (patch)
treec05aef57bb22278227bb475492e2696b1a19193c /eval.c
parentcad5dc5cc50a43203971939fd2806bfbf9a5dac9 (diff)
downloadbfs-88cc26afec80dae40d8e08de0e6db6c308e64f79.tar.xz
Re-work optimization levels.
-O3 is the new default, for the future cost-based optimizer. -O4 enables the surprising/aggressive optimizations that used to be under -O3. -Ofast is a synonym for -O4.
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/eval.c b/eval.c
index c3e29d2..44b1fa4 100644
--- a/eval.c
+++ b/eval.c
@@ -917,9 +917,9 @@ int eval_cmdline(const struct cmdline *cmdline) {
return 0;
}
- if (cmdline->optlevel >= 3 && cmdline->expr->eval == eval_false) {
+ if (cmdline->optlevel >= 4 && cmdline->expr->eval == eval_false) {
if (cmdline->debug & DEBUG_OPT) {
- fputs("-O3: skipping evaluation of top-level -false\n", stderr);
+ fputs("-O4: skipping evaluation of top-level -false\n", stderr);
}
return 0;
}