From: Ian Lance Taylor Date: Sat, 16 Aug 2014 00:54:32 +0000 (+0000) Subject: compiler: Pass initialization of frame temporary to backend. X-Git-Tag: releases/gcc-5.1.0~5442 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1a985ca83a4da70b0810727942e02badc70852ab;p=thirdparty%2Fgcc.git compiler: Pass initialization of frame temporary to backend. From-SVN: r214057 --- diff --git a/gcc/go/gofrontend/gogo.cc b/gcc/go/gofrontend/gogo.cc index 623befd10279..654b6c3df93e 100644 --- a/gcc/go/gofrontend/gogo.cc +++ b/gcc/go/gofrontend/gogo.cc @@ -5176,6 +5176,8 @@ Function::build(Gogo* gogo, Named_object* named_function) gogo->backend()->init_statement(vars[i], var_inits[i]); init.push_back(init_stmt); } + if (defer_init != NULL) + init.push_back(defer_init); Bstatement* var_init = gogo->backend()->statement_list(init); // Initialize all variables before executing this code block.