From: Ian Lance Taylor Date: Fri, 24 Jan 2014 01:01:47 +0000 (+0000) Subject: compiler: Convert named types before flattening. X-Git-Tag: releases/gcc-4.9.0~1407 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9eb3a1d30b85f2ec0e94b5ea4e1539be82ac51c2;p=thirdparty%2Fgcc.git compiler: Convert named types before flattening. From-SVN: r207018 --- diff --git a/gcc/go/gofrontend/go.cc b/gcc/go/gofrontend/go.cc index 26e83a1db64f..ac772a095f74 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 b04e660a92d6..1950090b9e05 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();