compiler: stack allocate defer thunk
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 9 Jan 2018 23:36:46 +0000 (23:36 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 9 Jan 2018 23:36:46 +0000 (23:36 +0000)
commit47e8a22a179a53f681ab4e2478ffd62d01fb5f52
treef6c752ac4ba05b7c95ae68696c2207393df008d4
parent311eca53bd28cad25686c9a6d967ceb211f214e1
compiler: stack allocate defer thunk

    Defer statement may need to allocate a thunk. When it is not
    inside a loop, this can be stack allocated, as it runs before
    the function finishes.

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

From-SVN: r256410
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/escape.cc
gcc/go/gofrontend/statements.cc