From: Ian Lance Taylor Date: Mon, 3 Dec 2012 06:57:04 +0000 (+0000) Subject: compiler: Don't encode non-ASCII characters in identifiers. X-Git-Tag: releases/gcc-4.8.0~1633 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cfb84a52ecaa6d9676ee1921b11877a0746ce687;p=thirdparty%2Fgcc.git compiler: Don't encode non-ASCII characters in identifiers. From-SVN: r194068 --- diff --git a/gcc/go/gofrontend/lex.cc b/gcc/go/gofrontend/lex.cc index 804146d0e9fc..22a1f6e2a0c8 100644 --- a/gcc/go/gofrontend/lex.cc +++ b/gcc/go/gofrontend/lex.cc @@ -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();