compiler: mark generated struct/array types as incomparable
authorIan Lance Taylor <ian@gcc.gnu.org>
Wed, 11 Jan 2017 17:41:49 +0000 (17:41 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 11 Jan 2017 17:41:49 +0000 (17:41 +0000)
commit25e15acf8cf0b7dc54367cb491c5f2d772199efb
treeed212265fa0780da97cfbad866130dd3b5343609
parentbf5fbf465dee3a30588bc9e6895d50a6f4ca59c5
compiler: mark generated struct/array types as incomparable

    The recent change to generate type functions for more types with
    identity comparisons caused us to generate some unnecessary functions,
    and even caused a compiler crash on Solaris due to phase ordering.
    Avoid this by marking all generated and uncompared struct and array
    types as incomparable, so that we don't try to generate type functions
    for them.

    Reviewed-on: https://go-review.googlesource.com/35110

From-SVN: r244327
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/gogo.cc
gcc/go/gofrontend/runtime.cc
gcc/go/gofrontend/types.cc