diff options
author | H. Peter Anvin <hpa@zytor.com> | 2018-12-11 00:06:29 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2018-12-11 00:06:29 -0800 |
commit | ddb290681e52aee70fc4b3342829fb9770a089b2 (patch) | |
tree | ac1c8104604e7a11db64198ca8ea1a387a361124 /asm/labels.c | |
parent | 026b62f264b86372cc596e5a035f87385931486a (diff) | |
download | nasm-ddb290681e52aee70fc4b3342829fb9770a089b2.tar.gz |
error: new flag ERR_HERE
ERR_HERE is used to mark messages of the form "... here" so that we
can emit sane output to the list file with filename and line number,
instead of a nonsensical "here" which could point almost anywhere.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'asm/labels.c')
-rw-r--r-- | asm/labels.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/asm/labels.c b/asm/labels.c index 795a7b7e..1e7301e1 100644 --- a/asm/labels.c +++ b/asm/labels.c @@ -506,8 +506,7 @@ void define_label(const char *label, int32_t segment, src_get(&saved_line, &saved_fname); src_set(lptr->defn.def_line, lptr->defn.def_file); - nasm_note("label `%s' originally defined here", - lptr->defn.label); + nasm_notef(ERR_HERE, "label `%s' originally defined", lptr->defn.label); src_set(saved_line, saved_fname); } else if (pass0 > 1 && lptr->defn.type != LBL_SPECIAL) { /* |