From: Ian Lance Taylor Date: Thu, 1 Nov 2018 04:21:16 +0000 (+0000) Subject: go-gcc.cc (Gcc_backend::write_global_definitions): Don't call gimplify_function_tree. X-Git-Tag: basepoints/gcc-10~3374 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=964f78b7e75a4dd4c5c68cec0858270fbfc1d37b;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/go/ChangeLog b/gcc/go/ChangeLog index e6f8644441fc..45871d75e800 100644 --- a/gcc/go/ChangeLog +++ b/gcc/go/ChangeLog @@ -1,3 +1,9 @@ +2018-10-31 Ian Lance Taylor + + * 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 * go-gcc.cc (Gcc_backend::function): Change to use a single flags diff --git a/gcc/go/go-gcc.cc b/gcc/go/go-gcc.cc index 9c317e06a922..092d3e4f1cfe 100644 --- a/gcc/go/go-gcc.cc +++ b/gcc/go/go-gcc.cc @@ -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;