[nasm:nasm-2.15.xx] asm: fix pass_type()
nasm-bot for H. Peter Anvin (Intel)
hpa at zytor.com
Wed Jul 8 09:18:03 PDT 2020
Commit-ID: 91bc51889577458d17fd68cd892bf1f4da0f705e
Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=91bc51889577458d17fd68cd892bf1f4da0f705e
Author: H. Peter Anvin (Intel) <hpa at zytor.com>
AuthorDate: Wed, 8 Jul 2020 09:14:58 -0700
Committer: H. Peter Anvin (Intel) <hpa at zytor.com>
CommitDate: Wed, 8 Jul 2020 09:14:58 -0700
asm: fix pass_type()
Update the table used by pass_type() to give the name of the pass
type. It was not updated properly after PASS_PREPROC was added.
Signed-off-by: H. Peter Anvin (Intel) <hpa at zytor.com>
---
asm/nasm.c | 2 +-
include/nasm.h | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/asm/nasm.c b/asm/nasm.c
index 69a3db55..c5d9aff1 100644
--- a/asm/nasm.c
+++ b/asm/nasm.c
@@ -105,7 +105,7 @@ bool tasm_compatible_mode = false;
enum pass_type _pass_type;
const char * const _pass_types[] =
{
- "init", "first", "optimize", "stabilize", "final"
+ "init", "preproc-only", "first", "optimize", "stabilize", "final"
};
int64_t _passn;
int globalrel = 0;
diff --git a/include/nasm.h b/include/nasm.h
index 616ffb37..efeb6190 100644
--- a/include/nasm.h
+++ b/include/nasm.h
@@ -1280,6 +1280,8 @@ struct optimization {
/*
* Various types of compiler passes we may execute.
+ * If these are changed, you need to also change _pass_types[]
+ * in asm/nasm.c.
*/
enum pass_type {
PASS_INIT, /* Initialization, not doing anything yet */
More information about the Nasm-commits
mailing list