]> gcc.gnu.org Git - gcc.git/commit
compiler: Fix -fgo-prefix handling.
authorIan Lance Taylor <ian@gcc.gnu.org>
Fri, 30 Jan 2015 00:35:44 +0000 (00:35 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 30 Jan 2015 00:35:44 +0000 (00:35 +0000)
commit2e29434de909a71522122f18fc66efd40c23ce8b
tree63c941536dee068ef77d7e77c6f5e54b9f6bc337
parent15b127290b48b90e2cb9fabbb7c2a09eade6a9c9
compiler: Fix -fgo-prefix handling.

There was bug in the fix for PR 61880: it only worked fully
correctly for code compiled with -fgo-pkgpath.  For code that
used -fgo-prefix, or that used neither option, the '.'
separating the prefix and the package name was converted to an
underscore, which did not happen before.  This broke SWIG and
any other code that expected specific symbol names.
Fortunately all code compiled in libgo and all code compiled
by the go tool uses -fgo-pkgpath, so this probably did not
affect very many people.

This is an incomplete fix that does not modify the package
file format, for use on both mainline and the GCC 4.9 branch.
A follow on patch will fully fix the problem.

From-SVN: r220268
gcc/go/gofrontend/export.cc
gcc/go/gofrontend/export.h
gcc/go/gofrontend/gogo.cc
gcc/go/gofrontend/gogo.h
gcc/go/gofrontend/import.cc
gcc/go/gofrontend/unsafe.cc
This page took 0.059504 seconds and 5 git commands to generate.