summaryrefslogtreecommitdiff
path: root/asm/error.c
diff options
context:
space:
mode:
authorH. Peter Anvin (Intel) <hpa@zytor.com>2018-12-12 16:49:07 -0800
committerH. Peter Anvin (Intel) <hpa@zytor.com>2018-12-12 16:49:07 -0800
commit950dee9edc475ae37d80e88b7048b8ff01d49a5f (patch)
tree9d19d3115dccc7ac9b5764ed35db307df11f6dee /asm/error.c
parent46016cb3688bf8582f47967e09b06b69ea271e75 (diff)
downloadnasm-950dee9edc475ae37d80e88b7048b8ff01d49a5f.tar.gz
BR 3392535: warning on redefine, promote define-on-pass2 to error
If we redefine consistently, make it a suppressed-by-default warning. If we end up doing the define on pass 2, promote that to a default-error warning; using a default-error warning allows the user to demote it should they so wish. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com> Requested-by: C. Masloch <pushbx@38.de>
Diffstat (limited to 'asm/error.c')
-rw-r--r--asm/error.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/asm/error.c b/asm/error.c
index 61c89740..f6098f4c 100644
--- a/asm/error.c
+++ b/asm/error.c
@@ -74,6 +74,8 @@ const struct warning warnings[WARN_ALL+1] = {
{"unknown-warning", "unknown warning in -W/-w or warning directive", off},
{"negative-rep", "regative %rep count", on},
{"phase", "phase error during stabilization", off},
+ {"label-redef", "label redefined to an identical value", off},
+ {"label-redef-late", "label (re)defined during code generation", err},
/* THESE ENTRIES SHOULD COME LAST */
{"other", "any warning not specifially mentioned above", on},