* go-gcc.cc (Gcc_backend::write_global_definitions): Don't call
gimplify_function_tree. Instead call allocate_struct_function if
necessary.
From-SVN: r265710
+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
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;