compiler: Fix handling of hidden methods for unnamed types.
authorIan Lance Taylor <ian@gcc.gnu.org>
Fri, 11 Oct 2013 22:53:17 +0000 (22:53 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 11 Oct 2013 22:53:17 +0000 (22:53 +0000)
commit55e0ab1ad90b446e5fda024a35474a0b5a0ab386
tree34dffec5bc928bd0f98e09d5dc441034f6eb6c68
parentb7d93b468a08d46d5bd7d0ed9e08695eef89ce24
compiler: Fix handling of hidden methods for unnamed types.

If an interface has hidden methods, we must make the interface
table comdat if it is for an unnamed type.

When we create a stub method for an unnamed type, don't make
it publically visible.

From-SVN: r203468
gcc/go/gofrontend/gogo-tree.cc
gcc/go/gofrontend/gogo.cc
gcc/go/gofrontend/gogo.h
gcc/go/gofrontend/types.cc