]> git.ipfire.org Git - thirdparty/gcc.git/commit
compiler: Use function receiver name in mangled named type descriptor.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Jan 2015 02:27:02 +0000 (02:27 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Jan 2015 02:27:02 +0000 (02:27 +0000)
commitc723f77b974285d45eb0ce2f0dc5d45e6aa24f0e
tree8ac20b6a5361978137e8458af8f60f82153cd3cb
parent678a4e3edeae059cdc1587156d2d1b42b9568f9f
compiler: Use function receiver name in mangled named type descriptor.

If named types with similar names are defined inside of methods
with similar names, it was possible that the mangled type names would be
the same, leading to multiple definitions of type descriptor and
garbage collection info variables.
This can only occur with similarly named methods across different
receivers, so we use the receiver name to distinguish.

Fixes issue 33.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@219214 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/go/gofrontend/types.cc