commit 4a43d3a6ce5978d490c58ae2a5e15fc186961d12
parent b4a14737671031ef9d57de428ba3c1a1618c644a
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Sat, 10 Feb 2024 22:57:21 +0100
as: Don't accept - in label names
If - is accepted in label names then it is not possible
to use it for substraction and expressions like:
LABEL-1
have to be written like:
LABEL - 1
Diffstat:
1 file changed, 0 insertions(+), 2 deletions(-)
diff --git a/src/cmd/as/parser.c b/src/cmd/as/parser.c
@@ -71,7 +71,6 @@ iden(void)
switch (c) {
case '\'':
case '_':
- case '-':
case '.':
case '$':
continue;
@@ -353,7 +352,6 @@ validlabel(char *name)
continue;
switch (c) {
case '_':
- case '-':
case '.':
case '$':
continue;