From 4cf86ddde8cd8655819358ae88c1ff70a2a79713 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Thu, 27 Dec 2018 11:24:17 -0800 Subject: BR 3392539: some errors can "cascade". Allow suppressing if dead. In BR 3392539, the error: helloW.s:18: error: label `rurt' changed during code generation [-w+error=label-redef-late] ... occurs a number of times after we have already issued an error. This is because the erroring instruction computes to a different size during code generation; this causes each subsequent label to cause a phase error. The phase error simply doesn't make much sense to report: if we are already committed to erroring out, it is more likely an error cascade rather than an error in its own right, so just suppress it in that case. Reported-by: Signed-off-by: H. Peter Anvin --- include/error.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/error.h b/include/error.h index 477a26d7..433c0680 100644 --- a/include/error.h +++ b/include/error.h @@ -76,6 +76,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 */ -- cgit v1.2.1