Re: Go patch committed: Fix -fgo-prefix handling

2015-01-30 Thread Ian Lance Taylor
This is the followup patch. This adds more information to the package when any imported packages have a pkgpath symbol that is not the obvious transformation of the pkgpath. This is enough to determine the right symbol name to use in all cases. Bootstrapped and ran Go testsuite on x86_64-unknown

Go patch committed: Fix -fgo-prefix handling

2015-01-29 Thread Ian Lance Taylor
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 a