aboutsummaryrefslogtreecommitdiff
path: root/gcc/go
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2012-12-03 06:57:04 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2012-12-03 06:57:04 +0000
commitcfb84a52ecaa6d9676ee1921b11877a0746ce687 (patch)
tree908356e7bb70c272d40f5d81273e45f12647bb85 /gcc/go
parentb4ec63970a41dc16664ba178250177091cbf875b (diff)
downloadgcc-cfb84a52ecaa6d9676ee1921b11877a0746ce687.zip
gcc-cfb84a52ecaa6d9676ee1921b11877a0746ce687.tar.gz
gcc-cfb84a52ecaa6d9676ee1921b11877a0746ce687.tar.bz2
compiler: Don't encode non-ASCII characters in identifiers.
From-SVN: r194068
Diffstat (limited to 'gcc/go')
-rw-r--r--gcc/go/gofrontend/lex.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/go/gofrontend/lex.cc b/gcc/go/gofrontend/lex.cc
index 804146d..22a1f6e2 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();