compiler: use gcWriteBarrier for pointer-shaped struct/array
authorIan Lance Taylor <ian@gcc.gnu.org>
Mon, 10 Jun 2019 20:35:14 +0000 (20:35 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 10 Jun 2019 20:35:14 +0000 (20:35 +0000)
commitd480455f2ddc3b89d8547969be9cda939c41da56
tree54d7572f8541793e7012b5446173670e5bea65f3
parentfa237d91e8cb88c7d228f0888ef5c1f3e8ad6d4a
compiler: use gcWriteBarrier for pointer-shaped struct/array

    If a struct/array is pointer-shaped (i.e. having a single field
    that is pointer-shaped), we can use gcWriteBarrier instead of
    typedmemmove for the write barrier.

    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/181539

From-SVN: r272130
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/wb.cc