compiler: Add pkgpath symbol information to export data

Programming / Compilers / GCC - ian [138bc75d-0d04-0410-961f-82ee72b054a4] - 30 January 2015 09:57 UTC

This adds the pkgpath symbol to the export data whenever it is needed--whenever the pkgpath symbol is not the obvious transformation of the pkgpath. This lets us determine the correct symbol name for indirectly imported packages compiled with -fgo-prefix.

1a38587 compiler: Add pkgpath symbol information to export data.
gcc/go/gofrontend/export.cc | 45 +++++++++++++++++++++++++++++++++++++++++++
gcc/go/gofrontend/export.h | 6 ++++++
gcc/go/gofrontend/gogo.cc | 8 ++------
gcc/go/gofrontend/import.cc | 22 +++++++++++++++++++++
gcc/go/gofrontend/import.h | 4 ++++
5 files changed, 79 insertions(+), 6 deletions(-)

Upstream: gcc.gnu.org


  • Share