compiler: build a single backend type for type alias
authorIan Lance Taylor <ian@gcc.gnu.org>
Thu, 12 Jul 2018 04:18:48 +0000 (04:18 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 12 Jul 2018 04:18:48 +0000 (04:18 +0000)
commit2c81daeeb5456d3b588e2ad22b5ec098bea2d393
treea59b85139c2d6eedc3ad0833e554d8535f68aa43
parent9d196169ccd1ef30c80f3681c13f84c573f5cd52
compiler: build a single backend type for type alias

    A type alias and its underlying type are identical. Build a
    single backend type for them. Previously we build two backend
    types, which sometimes confuse the backend's type system.

    Also don't include type aliases into the list of named type
    declarations, since they are not named types.

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

From-SVN: r262572
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/gogo.cc
gcc/go/gofrontend/types.cc