mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-01-18 16:25:05 +08:00
Merge tag 'nasm-2.14.03rc1'
NASM 2.14.03rc1 Resolved Conflicts: asm/labels.c include/error.h Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
commit
bd2803964e
@ -538,7 +538,7 @@ void define_label(const char *label, int32_t segment,
|
||||
* Note: As a special case, LBL_SPECIAL symbols are allowed
|
||||
* to be changed even during the last pass.
|
||||
*/
|
||||
nasm_warn(WARN_LABEL_REDEF_LATE,
|
||||
nasm_warn(WARN_LABEL_REDEF_LATE|ERR_UNDEAD,
|
||||
"label `%s' %s during code generation",
|
||||
lptr->defn.label, created ? "defined" : "changed");
|
||||
}
|
||||
|
@ -1681,8 +1681,13 @@ static bool skip_this_pass(errflags severity)
|
||||
*/
|
||||
static bool is_suppressed(errflags severity)
|
||||
{
|
||||
/* Fatal errors must never be suppressed */
|
||||
if ((severity & ERR_MASK) >= ERR_FATAL)
|
||||
return false; /* Fatal errors can never be suppressed */
|
||||
return false;
|
||||
|
||||
/* This error/warning is pointless if we are dead anyway */
|
||||
if ((severity & ERR_UNDEAD) && terminate_after_phase)
|
||||
return true;
|
||||
|
||||
return !(warning_state[warn_index(severity)] & WARN_ST_ENABLED);
|
||||
}
|
||||
|
@ -7,6 +7,11 @@
|
||||
The NASM 2 series supports x86-64, and is the production version of NASM
|
||||
since 2007.
|
||||
|
||||
\S{cl-2.14.03} Version 2.14.03
|
||||
|
||||
\b Suppress nuisance "\c{label changed during code generation}" messages
|
||||
after a real error.
|
||||
|
||||
\S{cl-2.14.02} Version 2.14.02
|
||||
|
||||
\b Fix crash due to multiple errors or warnings during the code
|
||||
|
@ -90,6 +90,7 @@ static inline vefunc nasm_set_verror(vefunc ve)
|
||||
#define ERR_PANIC 0x00000007 /* internal error: panic instantly
|
||||
* and dump core for reference */
|
||||
#define ERR_MASK 0x00000007 /* mask off the above codes */
|
||||
#define ERR_UNDEAD 0x00000008 /* skip if we already have errors */
|
||||
#define ERR_NOFILE 0x00000010 /* don't give source file name/line */
|
||||
#define ERR_HERE 0x00000020 /* point to a specific source location */
|
||||
#define ERR_USAGE 0x00000040 /* print a usage message */
|
||||
|
Loading…
Reference in New Issue
Block a user