From: Ian Lance Taylor Date: Thu, 3 May 2012 17:42:02 +0000 (+0000) Subject: compiler: Build import tables as needed for imported interfaces. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f070c0498e4dc44c1db59c394895710553f63beb;p=gcc.git compiler: Build import tables as needed for imported interfaces. From-SVN: r187111 --- diff --git a/gcc/go/gofrontend/import.cc b/gcc/go/gofrontend/import.cc index 58b0355c6c6..b0d10085382 100644 --- a/gcc/go/gofrontend/import.cc +++ b/gcc/go/gofrontend/import.cc @@ -669,6 +669,9 @@ Import::read_type() // This type has not yet been imported. ntype->clear_is_visible(); + if (!type->is_undefined() && type->interface_type() != NULL) + this->gogo_->record_interface_type(type->interface_type()); + type = ntype; } else if (no->is_type())