]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
compiler: Convert named types before flattening.
authorIan Lance Taylor <ian@gcc.gnu.org>
Fri, 24 Jan 2014 01:01:47 +0000 (01:01 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 24 Jan 2014 01:01:47 +0000 (01:01 +0000)
From-SVN: r207018

gcc/go/gofrontend/go.cc
gcc/go/gofrontend/gogo-tree.cc

index 26e83a1db64f8534a962f326bc22e41456c4a554..ac772a095f74ae8859f01d7df16dd864835a01b2 100644 (file)
@@ -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();
 
index b04e660a92d6e738731f731179111abdbcabae0f..1950090b9e0560ef41d5a886b82b325d736bbf9b 100644 (file)
@@ -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();