aboutsummaryrefslogtreecommitdiff
path: root/gcc/go/gofrontend/export.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2020-10-26 16:48:03 -0700
committerIan Lance Taylor <iant@golang.org>2020-10-27 11:03:11 -0700
commitb7ac5fdbe7352bd33f6e9f8629d1140f278060cb (patch)
treed3b27f28217b8c585d29e0eb4ddb148faa6da911 /gcc/go/gofrontend/export.cc
parent6f33e2d8427f347ed265e1c0e11523a650e465a6 (diff)
downloadgcc-b7ac5fdbe7352bd33f6e9f8629d1140f278060cb.zip
gcc-b7ac5fdbe7352bd33f6e9f8629d1140f278060cb.tar.gz
gcc-b7ac5fdbe7352bd33f6e9f8629d1140f278060cb.tar.bz2
compiler, go/internal/gccgoimporter: export notinheap annotation
This is the gofrontend version of https://golang.org/cl/259297. This is required now because that change is in the 1.15.3 release. This requires changing the go/internal/gccgoimporter package, to skip the new annotation. This change will need to be ported to the gc and x/tools repos. For golang/go#41761 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/265258
Diffstat (limited to 'gcc/go/gofrontend/export.cc')
-rw-r--r--gcc/go/gofrontend/export.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/go/gofrontend/export.cc b/gcc/go/gofrontend/export.cc
index 277aa74..90a5f6d 100644
--- a/gcc/go/gofrontend/export.cc
+++ b/gcc/go/gofrontend/export.cc
@@ -1211,6 +1211,9 @@ Export::write_type_definition(const Type* type, int index)
this->write_string(nt->named_object()->name());
this->write_c_string("\" ");
+ if (!nt->in_heap())
+ this->write_c_string("notinheap ");
+
if (nt->is_alias())
this->write_c_string("= ");
}