aboutsummaryrefslogtreecommitdiff
path: root/gcc/go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2018-11-01 04:21:16 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2018-11-01 04:21:16 +0000
commit964f78b7e75a4dd4c5c68cec0858270fbfc1d37b (patch)
tree11171e5d73017e9fcd1ac3ddbc484945639c5f34 /gcc/go
parentff66ed878fb526512ef6d2df2a75b4500ee7ce6a (diff)
downloadgcc-964f78b7e75a4dd4c5c68cec0858270fbfc1d37b.zip
gcc-964f78b7e75a4dd4c5c68cec0858270fbfc1d37b.tar.gz
gcc-964f78b7e75a4dd4c5c68cec0858270fbfc1d37b.tar.bz2
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
Diffstat (limited to 'gcc/go')
-rw-r--r--gcc/go/ChangeLog6
-rw-r--r--gcc/go/go-gcc.cc3
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/go/ChangeLog b/gcc/go/ChangeLog
index e6f8644..45871d7 100644
--- a/gcc/go/ChangeLog
+++ b/gcc/go/ChangeLog
@@ -1,3 +1,9 @@
+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
diff --git a/gcc/go/go-gcc.cc b/gcc/go/go-gcc.cc
index 9c317e0..092d3e4 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;