]> git.ipfire.org Git - thirdparty/gcc.git/commit
compiler: scan all function literals for escape analysis
authorIan Lance Taylor <iant@golang.org>
Sun, 26 Jul 2020 18:08:13 +0000 (11:08 -0700)
committerGiuliano Belinassi <giuliano.belinassi@usp.br>
Mon, 17 Aug 2020 16:19:51 +0000 (13:19 -0300)
commit809eab46b1ccd926aad52b4eea70822eb9de3558
treeec72a258c693e906ccbc2b7ad8eeb2ed44401fa2
parentd8b6ad4c1a59193583a01659fa8b0997cafcee76
compiler: scan all function literals for escape analysis

We were scanning only function literals with closures, but not all
function literals have closures.

Discovered because compiler failed building 1.15rc1, as there is a
function literal in the runtime package (p1 in hexdumpWords) that has
no closure and, without escape analysis, was forcing a variable to the
heap which is not permitted in the runtime.

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/244802
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/escape.cc