compiler: Don't built hash/equality functions for thunk structs.
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 16 Dec 2014 22:53:38 +0000 (22:53 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 16 Dec 2014 22:53:38 +0000 (22:53 +0000)
commite0d475db10f8976060a964517a64cd7b4508cefa
tree745f7d8d71a7a467de39d8220fc043eb29373144
parentc0f15a3f249fa7ec0a210e540c0d3af7f642ccfa
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.

From-SVN: r218798
gcc/go/gofrontend/statements.cc
gcc/go/gofrontend/statements.h
gcc/go/gofrontend/types.cc