Commit cfb84a52 by Ian Lance Taylor

compiler: Don't encode non-ASCII characters in identifiers.

From-SVN: r194068
parent b4ec6397
......@@ -915,12 +915,8 @@ Lex::gather_identifier()
}
if (is_invalid && !Lex::is_invalid_identifier(buf))
buf.append("$INVALID$");
buf.append(p, pnext - p);
p = pnext;
char ubuf[50];
// This assumes that all assemblers can handle an identifier
// with a '$' character.
snprintf(ubuf, sizeof ubuf, "$U%x$", ci);
buf.append(ubuf);
}
}
Location location = this->location();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment