shithub: scc

Download patch

ref: 5dc64fc95bcea6e930d1caf8707aedd356af818b
parent: 4fcf1afb4b17da514f823d16890dd4ece09ecf1e
author: Roberto E. Vargas Caballero <[email protected]>
date: Thu Aug 27 12:09:32 EDT 2015

Fix error message in label()

--- a/cc1/stmt.c
+++ b/cc1/stmt.c
@@ -22,7 +22,7 @@
 	case TYPEIDEN:
 		sym = lookup(NS_LABEL, yytext);
 		if (sym->flags & ISDEFINED)
-			error("label '%s' already defined", yytoken);
+			error("label '%s' already defined", yytext);
 		if ((sym->flags & ISDECLARED) == 0)
 			sym = install(NS_LABEL, sym);
 		sym->flags |= ISDEFINED;