From: ian Date: Thu, 2 Oct 2014 17:56:50 +0000 (+0000) Subject: PR go/61880 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3232736916c3775fa91922121dc493290b462093;p=thirdparty%2Fgcc.git PR go/61880 compiler: symbol names should have '.' replaced with '_' Package and symbol names issued by the cgo tool and compiler should be the same for the object files to link. A minimal change to fix only: https://code.google.com/p/gofrontend/issues/detail?id=36 and https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61880 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215810 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/go/gofrontend/gogo.cc b/gcc/go/gofrontend/gogo.cc index dcc2ae64961a..81a555fdd88f 100644 --- a/gcc/go/gofrontend/gogo.cc +++ b/gcc/go/gofrontend/gogo.cc @@ -258,10 +258,7 @@ Gogo::pkgpath_for_symbol(const std::string& pkgpath) char c = s[i]; if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') - || (c >= '0' && c <= '9') - || c == '_' - || c == '.' - || c == '$') + || (c >= '0' && c <= '9')) ; else s[i] = '_';