aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/runtime
diff options
context:
space:
mode:
authorChris Manghane <cmang@google.com>2014-09-03 22:56:09 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2014-09-03 22:56:09 +0000
commitf1d2ac4f84b4b5354779b3b0a0e125b8302ebb49 (patch)
treeba1dd2b0b5d5bd16e9bc5c7dce503f320e8a896a /libgo/go/runtime
parentd2e4feca24b91fd1a3e4e42f8ef82b19d0df5853 (diff)
downloadgcc-f1d2ac4f84b4b5354779b3b0a0e125b8302ebb49.zip
gcc-f1d2ac4f84b4b5354779b3b0a0e125b8302ebb49.tar.gz
gcc-f1d2ac4f84b4b5354779b3b0a0e125b8302ebb49.tar.bz2
compiler: Add precise type information on the heap.
* go-gcc.cc (Gcc_backend::implicit_variable): Remove init parameter. Add is_hidden parameter. (Gcc_backend::implicit_variable_set_init): New method. (Gcc_backend::implicit_variable_reference): New method. From-SVN: r214894
Diffstat (limited to 'libgo/go/runtime')
-rw-r--r--libgo/go/runtime/type.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/libgo/go/runtime/type.go b/libgo/go/runtime/type.go
index 1211f22..a5ed8af 100644
--- a/libgo/go/runtime/type.go
+++ b/libgo/go/runtime/type.go
@@ -15,7 +15,7 @@ package runtime
import "unsafe"
type rtype struct {
- Kind uint8
+ kind uint8
align uint8
fieldAlign uint8
size uintptr
@@ -24,6 +24,7 @@ type rtype struct {
hashfn func(unsafe.Pointer, uintptr) uintptr
equalfn func(unsafe.Pointer, unsafe.Pointer, uintptr) bool
+ gc unsafe.Pointer
string *string
*uncommonType
ptrToThis *rtype