compiler: stack allocate defer thunk
commit8c40c59f4021f81379009b3d53e71486288b5c0d
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Jan 2018 23:36:46 +0000 (9 23:36 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Jan 2018 23:36:46 +0000 (9 23:36 +0000)
treef6c752ac4ba05b7c95ae68696c2207393df008d4
parent138de1167789b3160d0876ff7b1a1ea4bfc1827d
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

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