compiler: delay escaping sliced arrays
commitb7327dbf3b15172a8abae545c1c2138e12a4b75a
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Jan 2018 23:16:13 +0000 (9 23:16 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Jan 2018 23:16:13 +0000 (9 23:16 +0000)
tree3e7d48df282ccdaa6a71764e645bc13df07ef05a
parentc1a07f3621b8d5d2b1f5ba88af0cceb354285eaa
compiler: delay escaping sliced arrays

    Arrays that are sliced are set to escape in type checking, very
    early in compilation. The escape analysis runs later but cannot
    undo it. This CL changes it to not escape in the early stage.
    Later the escape analysis will make it escape when needed.

    Reviewed-on: https://go-review.googlesource.com/85635

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@256403 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/wb.cc