diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2019-06-07 21:16:11 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2019-06-07 21:16:11 +0000 |
commit | 1afab7a878555956f4842dcbed19bfe3c1c28a6e (patch) | |
tree | 2eabbd83ae15107c9d8981d043ef0aa5411fd6de /gcc/go/gofrontend/expressions.h | |
parent | 7a649ef59f9c32dd164a8e62b6eddb778cd7cb12 (diff) | |
download | gcc-1afab7a878555956f4842dcbed19bfe3c1c28a6e.zip gcc-1afab7a878555956f4842dcbed19bfe3c1c28a6e.tar.gz gcc-1afab7a878555956f4842dcbed19bfe3c1c28a6e.tar.bz2 |
compiler: improve write barrier generation
For string, slice, interface values, do assignments field by
field instead of using typedmemmove.
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/181297
From-SVN: r272055
Diffstat (limited to 'gcc/go/gofrontend/expressions.h')
-rw-r--r-- | gcc/go/gofrontend/expressions.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/go/gofrontend/expressions.h b/gcc/go/gofrontend/expressions.h index 6ba7fe1..22dd2fc 100644 --- a/gcc/go/gofrontend/expressions.h +++ b/gcc/go/gofrontend/expressions.h @@ -237,7 +237,7 @@ class Expression // Make an expression that evaluates to some characteristic of an string. // For simplicity, the enum values must match the field indexes in the - // underlying struct. + // underlying struct. This returns an lvalue. enum String_info { // The underlying data in the string. @@ -448,7 +448,7 @@ class Expression // Make an expression that evaluates to some characteristic of a // slice. For simplicity, the enum values must match the field indexes - // in the underlying struct. + // in the underlying struct. This returns an lvalue. enum Slice_info { // The underlying data of the slice. @@ -469,7 +469,7 @@ class Expression // Make an expression that evaluates to some characteristic of an // interface. For simplicity, the enum values must match the field indexes - // in the underlying struct. + // in the underlying struct. This returns an lvalue. enum Interface_info { // The type descriptor of an empty interface. |