diff options
| author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-10-02 18:00:01 +0000 |
|---|---|---|
| committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-10-02 18:00:01 +0000 |
| commit | fe12ee571f9aaed5663b6b70d6439e654ed22109 (patch) | |
| tree | ae2886d21fdd17bb972e89b2c76c7c55338cca87 | |
| parent | a49170e326049f7735abd75b56d49cd7edc1cf10 (diff) | |
| download | ppe42-gcc-fe12ee571f9aaed5663b6b70d6439e654ed22109.tar.gz ppe42-gcc-fe12ee571f9aaed5663b6b70d6439e654ed22109.zip | |
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/branches/gcc-4_9-branch@215812 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/go/gofrontend/gogo.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/go/gofrontend/gogo.cc b/gcc/go/gofrontend/gogo.cc index 9739f289f4d..f042f64d492 100644 --- a/gcc/go/gofrontend/gogo.cc +++ b/gcc/go/gofrontend/gogo.cc @@ -255,10 +255,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] = '_'; |

