Commit 964f78b7 by Ian Lance Taylor Committed by Ian Lance Taylor

go-gcc.cc (Gcc_backend::write_global_definitions): Don't call gimplify_function_tree.

	* go-gcc.cc (Gcc_backend::write_global_definitions): Don't call
	gimplify_function_tree.  Instead call allocate_struct_function if
	necessary.

From-SVN: r265710
parent ff66ed87
2018-10-31 Ian Lance Taylor <iant@golang.org>
* go-gcc.cc (Gcc_backend::write_global_definitions): Don't call
gimplify_function_tree. Instead call allocate_struct_function if
necessary.
2018-10-29 Ian Lance Taylor <iant@golang.org>
* go-gcc.cc (Gcc_backend::function): Change to use a single flags
......
......@@ -3246,7 +3246,8 @@ Gcc_backend::write_global_definitions(
if (decl != error_mark_node)
{
go_preserve_from_gc(decl);
gimplify_function_tree(decl);
if (DECL_STRUCT_FUNCTION(decl) == NULL)
allocate_struct_function(decl, false);
cgraph_node::finalize_function(decl, true);
defs[i] = decl;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment