summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-01-08 22:31:20 -0800
committerH. Peter Anvin <hpa@zytor.com>2008-01-08 22:31:20 -0800
commit34ec30064302bdbd1202b23053af5811f8a6f9da (patch)
tree9dae33e02d2786c7287bb8ae11d74101b352ad5e
parent62cf415f4976f681edecb067e9ca1c17f145a349 (diff)
downloadnasm-34ec30064302bdbd1202b23053af5811f8a6f9da.tar.gz
Remove magic "five pass minimum" - I'm pretty sure optimizer is fixed.
The five-pass-minimum was a hack for a bug which I think is identified now. Doesn't really change the fact that if you want the optimizer, you probably want -Ox.
-rw-r--r--nasm.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/nasm.c b/nasm.c
index 63aaeb14..649d02b1 100644
--- a/nasm.c
+++ b/nasm.c
@@ -437,12 +437,8 @@ static bool process_arg(char *p, char *q)
/* -O1 -> optimizing == 0, 0.98.09 behaviour */
if (opt < 2)
optimizing = opt - 1;
- else if (opt <= 5)
- /* The optimizer seems to have problems with
- < 5 passes? Hidden bug? */
- optimizing = 5; /* 5 passes */
else
- optimizing = opt; /* More than 5 passes */
+ optimizing = opt;
break;
case 'v':