aboutsummaryrefslogtreecommitdiff
path: root/gcc/go
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2014-01-24 01:01:47 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2014-01-24 01:01:47 +0000
commit9eb3a1d30b85f2ec0e94b5ea4e1539be82ac51c2 (patch)
treeb83135b07bea84f499b6197a8029face768bbbcc /gcc/go
parentf2c20518ba8903e1bdbf791974855c9133a48602 (diff)
downloadgcc-9eb3a1d30b85f2ec0e94b5ea4e1539be82ac51c2.zip
gcc-9eb3a1d30b85f2ec0e94b5ea4e1539be82ac51c2.tar.gz
gcc-9eb3a1d30b85f2ec0e94b5ea4e1539be82ac51c2.tar.bz2
compiler: Convert named types before flattening.
From-SVN: r207018
Diffstat (limited to 'gcc/go')
-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();