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

From-SVN: r194068
This commit is contained in:
Ian Lance Taylor 2012-12-03 06:57:04 +00:00
parent b4ec63970a
commit cfb84a52ec

View File

@ -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();