]> git.ipfire.org Git - thirdparty/gcc.git/commit
compiler: don't use address of temporary for deferred delete
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 14 Sep 2018 16:55:41 +0000 (16:55 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 14 Sep 2018 16:55:41 +0000 (16:55 +0000)
commit28819633369264659eb454a950f66c9606e2efd3
treeed6dddd3d52e2444802907f0139d34e010c26ddc
parentbc3ef9be334f543fe0d4a8e926fadb04b0cea6b1
compiler: don't use address of temporary for deferred delete

    This CL corrects the handling of a deferred delete in a loop, to not
    use a temporary whose value will, at deferred execution time, wind up
    being the last value in the loop.

    The test for this is TestDeferDeleteSlow in the 1.11 runtime package.

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

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