compiler: Don't built hash/equality functions for thunk structs.
commitcd4d3fbfdadb3b3d6da7b240f1f2c63810fbc5c9
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Dec 2014 22:53:38 +0000 (16 22:53 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Dec 2014 22:53:38 +0000 (16 22:53 +0000)
tree745f7d8d71a7a467de39d8220fc043eb29373144
parentde524aa14c57696d82bc6e3d62f5973f0999b509
compiler: Don't built hash/equality functions for thunk structs.

They are never necessary, and they can cause problems when a
thunk is used to pass an unexported type from a different
package to a function defined in that package.  The resulting
struct type may need to call the comparison routine from the
other package, which will fail because the type is not
exported.  This will be bug492 in the master testsuite.

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