ref: 03fe077b41ae81d240e2c467bdf7275d57b3c462
parent: 12ef87986058f1d5343cf53a359e7aa064fbae7c
author: ISSOtm <[email protected]>
date: Tue Feb 18 13:15:27 EST 2020
Make locals without parent a non-fatal error
--- a/src/asm/symbol.c
+++ b/src/asm/symbol.c
@@ -526,7 +526,7 @@
sym_AddReloc(fullname);
} else {
- fatalerror("Local label in main scope");
+ yyerror("Local label '%s' in main scope", tzSym);
}
}
--- a/test/asm/local-without-parent.err
+++ b/test/asm/local-without-parent.err
@@ -1,2 +1,2 @@
ERROR: local-without-parent.asm(2):
- Local label in main scope
+ Local label '.test' in main scope