aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/go/gofrontend/go.cc3
-rw-r--r--gcc/go/gofrontend/gogo-tree.cc1
2 files changed, 3 insertions, 1 deletions
diff --git a/gcc/go/gofrontend/go.cc b/gcc/go/gofrontend/go.cc
index 26e83a1..ac772a0 100644
--- a/gcc/go/gofrontend/go.cc
+++ b/gcc/go/gofrontend/go.cc
@@ -119,6 +119,9 @@ go_parse_input_files(const char** filenames, unsigned int filename_count,
// Use temporary variables to force order of evaluation.
::gogo->order_evaluations();
+ // Convert named types to backend representation.
+ ::gogo->convert_named_types();
+
// Flatten the parse tree.
::gogo->flatten();
diff --git a/gcc/go/gofrontend/gogo-tree.cc b/gcc/go/gofrontend/gogo-tree.cc
index b04e660..1950090 100644
--- a/gcc/go/gofrontend/gogo-tree.cc
+++ b/gcc/go/gofrontend/gogo-tree.cc
@@ -755,7 +755,6 @@ sort_var_inits(Gogo* gogo, Var_inits* var_inits)
void
Gogo::write_globals()
{
- this->convert_named_types();
this->build_interface_method_tables();
Bindings* bindings = this->current_bindings();